MCPcopy Index your code
hub / github.com/codeaashu/claude-code / call

Function call

src/tools/TaskStopTool/TaskStopTool.ts:107–130  ·  view source on GitHub ↗
(
    { task_id, shell_id },
    { getAppState, setAppState, abortController },
  )

Source from the content-addressed store, hash-verified

105 renderToolUseMessage,
106 renderToolResultMessage,
107 async call(
108 { task_id, shell_id },
109 { getAppState, setAppState, abortController },
110 ) {
111 // Support both task_id and shell_id (deprecated KillShell compat)
112 const id = task_id ?? shell_id
113 if (!id) {
114 throw new Error('Missing required parameter: task_id')
115 }
116
117 const result = await stopTask(id, {
118 getAppState,
119 setAppState,
120 })
121
122 return {
123 data: {
124 message: `Successfully stopped task: ${result.taskId} (${result.command})`,
125 task_id: result.taskId,
126 task_type: result.taskType,
127 command: result.command,
128 },
129 }
130 },
131} satisfies ToolDef<InputSchema, Output>)
132

Callers

nothing calls this directly

Calls 1

stopTaskFunction · 0.85

Tested by

no test coverage detected