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

Function controlTool

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

Source from the content-addressed store, hash-verified

350 };
351
352 const controlTool = async (toolCallId: string, action: "cancel" | "pause" | "resume") => {
353 const ws = getInstance();
354 if (!ws || !wsConnected.value) return;
355 ws.send({
356 type: "tool:control",
357 payload: {
358 tool_call_id: toolCallId,
359 action,
360 },
361 });
362 };
363
364 // ==================
365 // 初始化

Callers

nothing calls this directly

Calls 2

getInstanceFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected