Cancel job
cancel_jobStop a queued or running job; its sandbox is removed, the log and usage so far are kept. Returns the job's state. To stop every job of a batch at once, cancel the batch instead.
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 |
|---|---|---|---|
| job_id | Yes | Job ID (job_…) returned by run_job. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID. | |
| status | Yes | Job state after the call. | |
| cancel_requested | Yes | Cancellation is in progress (the sandbox is being stopped). |