cancel_task
Cancel a background task using its task ID, receiving cancellation status. Works best-effort; long-running operations may not stop immediately.
Instructions
Cancel a pending or running background task.
Args: task_id: The task ID to cancel.
Returns: JSON with cancellation status.
Note: Cancellation is best-effort. Long-running operations may not stop immediately.
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 |
|---|---|---|---|
| result | Yes |