cancel_dispatch
Cancel a running job by terminating its process and asyncio task, updating status to cancelled. Returns confirmation or reason if job already finished.
Instructions
User-cancel a running job. SIGTERMs the subprocess by PID, then
cancels the asyncio task. Status becomes cancelled (vs the
abandoned state for runtime/transport-induced cancellations).
Returns {cancelled: true} if the cancel was actionable, or
{cancelled: false, reason} for jobs that have already finished
or have no live task.
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": {
"job_id": "<job_id>"
},
"name": "cancel_dispatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |