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

Function fsReadInputSchema

app/src/AI/ToolDispatcher.cpp:459–474  ·  view source on GitHub ↗

* @brief Input schema for fs.read. */

Source from the content-addressed store, hash-verified

457 * @brief Input schema for fs.read.
458 */
459static QJsonObject fsReadInputSchema()
460{
461 QJsonObject props;
462 props[QStringLiteral("path")] =
463 makeProperty(QStringLiteral("string"),
464 QStringLiteral("File path relative to the workspace folder, or an absolute "
465 "dragged-in path. Text files only."));
466 props[QStringLiteral("offset")] =
467 makeProperty(QStringLiteral("integer"),
468 QStringLiteral("Byte offset to start at; follow nextOffset to "
469 "page large files. Default 0."));
470 props[QStringLiteral("limit")] = makeProperty(
471 QStringLiteral("integer"),
472 QStringLiteral("Max bytes to return this call (capped at 32 KB). Default is the cap."));
473 return makeObjectSchema(props, QJsonArray{QStringLiteral("path")});
474}
475
476/**
477 * @brief Input schema for fs.search.

Callers 1

fsToolDefsFunction · 0.85

Calls 2

makePropertyFunction · 0.85
makeObjectSchemaFunction · 0.85

Tested by

no test coverage detected