Cancel a DSH task
dsh_cancel_taskTerminates a running DSH task and its process tree by task id. Use it to stop a runaway task or honor a user's stop request; repeated calls are safe since finished tasks return cancelled=false.
Instructions
Terminate a running DSH task and its process tree. Cancellation is idempotent: if the task already finished, returns cancelled=false. Only use when the user asks to stop, or when a task is clearly runaway.
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": {
"task_id": "<task_id>"
},
"name": "dsh_cancel_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Short reason shown in local bridge logs. | |
| task_id | Yes | Task id to cancel. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| status | Yes | ||
| message | Yes | ||
| task_id | Yes | ||
| cancelled | Yes | ||
| already_terminal | No |