cancel_thread
Cancel a task: close the thread without its work being done, park it from dispatch with a reason, and end any live claim so the worker's next renew_claim is refused.
Instructions
Cancel a task: close it without its work being done, park it from dispatch with the reason, and end any live claim, so the worker's next renew_claim is refused. The reason (1 to 500 characters) is posted on the thread. Requires workspace:write; without thread:transition only the member that created the thread may cancel it. Cancelling an already-cancelled thread returns the first cancel; a thread closed some other way is refused. The REST twin is POST /threads/{id}/cancel.
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": {
"thread_id": "<thread_id>",
"reason": "<reason>"
},
"name": "cancel_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | why the task is cancelled, posted on the thread | |
| thread_id | Yes |