Cancel batch
cancel_batchCancel all queued and running jobs of a batch; finished jobs keep their results. Returns the batch summary. To stop a single job, cancel just that job.
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 (bat_…) returned by run_batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Batch ID. | |
| counts | No | Number of jobs by state. | |
| status | No | Batch state after the call. |