cancel_job
Cancel a running or pending background job. Optionally delete the job record to clean up completed or failed jobs.
Instructions
Cancel a running or pending background job. Set delete=true to also remove the job record entirely (useful for cleaning up completed/failed jobs).
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_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delete | No | Also remove the job record after cancelling (default: false) | |
| job_id | Yes | Job ID to cancel |