cancel_batch
Cancel all unfinished jobs in a batch: queued jobs stop immediately and running jobs stop after their current step, while held credits are released and finished jobs keep their results.
Instructions
Cancel every unfinished job in a batch: queued jobs stop at once and running jobs stop after their current step. Credits held for cancelled jobs are released and cancelled jobs keep no results and cost nothing; finished jobs keep their results and charges. Safe to repeat. Returns the updated batch.
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": {
"batch_id": "<batch_id>"
},
"name": "cancel_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | Batch id returned by create_batch or listed by list_batches. |