Cancel job
cancel_jobCancel a job the caller can access by its id (recovers a mistaken or duplicate submission). An API token can cancel any job in its organization, so an id from list_jobs may belong to a human teammate — cancel only a job the user explicitly identified. Only jobs still in PENDING state can be cancelled; a job already PROCESSING or COMPLETED returns an error — poll get_job first if unsure. Refunds the credit only if the job had not started processing.
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": {
"jobId": "<jobId>"
},
"name": "cancel_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes |