cancel_task
Stop a delegated task and get back either a canceled result or the final state it had already reached.
Instructions
Stop a task you delegated. Returns canceled, or the final state it had already reached.
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": "cancel_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| answer | No | set when the peer answered directly instead of working on a task | |
| task_id | Yes | ||
| version | Yes | pass as after_version to get_delegated_task_updates to wait for the next change |