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

Method runMetaListCommands

app/src/AI/Conversation.cpp:606–618  ·  view source on GitHub ↗

* @brief meta.listCommands: lists available commands filtered by prefix. */

Source from the content-addressed store, hash-verified

604 * @brief meta.listCommands: lists available commands filtered by prefix.
605 */
606void AI::Conversation::runMetaListCommands(const QString& callId,
607 const QString& name,
608 const QJsonObject& arguments)
609{
610 appendToolCallCard(callId, name, arguments, CallStatus::Running);
611 const auto prefix = arguments.value(QStringLiteral("prefix")).toString();
612 const int offset = arguments.value(QStringLiteral("offset")).toInt(0);
613 const int limit = arguments.value(QStringLiteral("limit")).toInt(0);
614 const auto reply = m_dispatcher->listCommands(prefix, offset, limit);
615 recordToolResult(callId, name, reply);
616 updateToolCallCard(callId, CallStatus::Done, reply);
617 releaseOutstandingToolResult();
618}
619
620/**
621 * @brief meta.executeCommand: dispatches the inner tool with the same safety policy.

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
listCommandsMethod · 0.45

Tested by

no test coverage detected