cancel_task
Terminate a running background task and its child process tree using its taskId to stop unwanted or stuck work.
Instructions
Cancel/terminate a running background task (and its child process tree) by taskId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"taskId": "<taskId>"
},
"name": "cancel_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Task ID returned by dispatch_* or run_shell(asyncMode=true) |