MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fsWriteInputSchema

Function fsWriteInputSchema

app/src/AI/ToolDispatcher.cpp:495–505  ·  view source on GitHub ↗

* @brief Input schema for fs.write and fs.append. */

Source from the content-addressed store, hash-verified

493 * @brief Input schema for fs.write and fs.append.
494 */
495static QJsonObject fsWriteInputSchema()
496{
497 QJsonObject props;
498 props[QStringLiteral("path")] = makeProperty(
499 QStringLiteral("string"),
500 QStringLiteral("Destination path under the workspace 'AI/' subfolder, e.g. 'notes.md' "
501 "or 'exports/data.csv'. Paths outside AI/ are rejected."));
502 props[QStringLiteral("content")] =
503 makeProperty(QStringLiteral("string"), QStringLiteral("UTF-8 text to write."));
504 return makeObjectSchema(props, QJsonArray{QStringLiteral("path"), QStringLiteral("content")});
505}
506
507/**
508 * @brief Input schema for fs.delete.

Callers 1

fsToolDefsFunction · 0.85

Calls 2

makePropertyFunction · 0.85
makeObjectSchemaFunction · 0.85

Tested by

no test coverage detected