MCPcopy Create free account
hub / github.com/astercloud/aster / controlTool

Function controlTool

ui/src/composables/useChat.ts:521–531  ·  view source on GitHub ↗
(toolCallId: string, action: "cancel" | "pause" | "resume")

Source from the content-addressed store, hash-verified

519 };
520
521 const controlTool = async (toolCallId: string, action: "cancel" | "pause" | "resume") => {
522 const ws = getInstance();
523 if (!ws || !wsConnected.value) return;
524 ws.send({
525 type: "tool:control",
526 payload: {
527 tool_call_id: toolCallId,
528 action,
529 },
530 });
531 };
532
533 // 初始化
534 onMounted(() => {

Callers

nothing calls this directly

Calls 2

getInstanceFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected