cancel_task
Cancels a task that is pending or running. Does not affect completed tasks.
Instructions
Cancel a task that is currently in 'pending' or 'running' status. Has no effect on tasks that have already completed (succeeded, failed, timeout).
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 | The task ID to cancel |