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

Method runMetaSnapshot

app/src/AI/Conversation.cpp:590–601  ·  view source on GitHub ↗

* @brief meta.snapshot: returns the dispatcher's current state snapshot. */

Source from the content-addressed store, hash-verified

588 * @brief meta.snapshot: returns the dispatcher's current state snapshot.
589 */
590void AI::Conversation::runMetaSnapshot(const QString& callId,
591 const QString& name,
592 const QJsonObject& arguments)
593{
594 appendToolCallCard(callId, name, arguments, CallStatus::Running);
595 QJsonObject reply;
596 reply[QStringLiteral("ok")] = true;
597 reply[QStringLiteral("snapshot")] = m_dispatcher->getSnapshot();
598 recordToolResult(callId, name, reply);
599 updateToolCallCard(callId, CallStatus::Done, reply);
600 releaseOutstandingToolResult();
601}
602
603/**
604 * @brief meta.listCommands: lists available commands filtered by prefix.

Callers

nothing calls this directly

Calls 1

getSnapshotMethod · 0.80

Tested by

no test coverage detected