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

Function restoreInputSchema

app/src/AI/ToolDispatcher.cpp:343–355  ·  view source on GitHub ↗

* @brief Input schema for assistant.restore. */

Source from the content-addressed store, hash-verified

341 * @brief Input schema for assistant.restore.
342 */
343static QJsonObject restoreInputSchema()
344{
345 QJsonObject props;
346 props[QStringLiteral("path")] =
347 makeProperty(QStringLiteral("string"),
348 QStringLiteral("Absolute snapshot path from assistant.checkpoint or from a "
349 "destructive command's backupPath."));
350 props[QStringLiteral("timestamp")] = makeProperty(
351 QStringLiteral("string"), QStringLiteral("Snapshot timestamp from assistant.listCheckpoints."));
352 props[QStringLiteral("label")] =
353 makeProperty(QStringLiteral("string"), QStringLiteral("Label assigned at checkpoint time."));
354 return makeObjectSchema(props);
355}
356
357/**
358 * @brief Input schema for assistant.listCheckpoints.

Callers 1

assistantToolDefsFunction · 0.85

Calls 2

makePropertyFunction · 0.85
makeObjectSchemaFunction · 0.85

Tested by

no test coverage detected