task_cancel
Cancel a durable task by ID; running tasks require their current lease, while queued, verifying, or repairing tasks need only the task ID.
Instructions
Cancel a durable task. A running task requires its current lease; queued/verifying/repairing tasks can be cancelled by id.
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": {
"id": "<id>"
},
"name": "task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| leaseId | No | Opaque lease returned by task_claim/task_next. Required while a worker owns the task. |