Cancel a running batch
cancel_batchStop a pending or processing AI translation batch to halt further spending, return unspent reserved words to the cycle allowance, and preserve completed translations for retry.
Instructions
Stop a pending or processing AI translation batch. Queued chunks refuse to run, so this is how you STOP spend rather than cause it, and the batch's unspent reserved words go back to the cycle allowance (words already spent on the items it completed stay spent). Already-translated items are kept; the remaining items are marked failed, so retry_failed_batch resumes what was stopped. Idempotent: a batch that already finished comes back unchanged with its own status, never an error. Requires the "manage" ability.
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 | Id of the batch to stop. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| total | Yes | ||
| failed | Yes | ||
| status | Yes | ||
| trigger | Yes | ||
| failures | No | ||
| completed | Yes | ||
| started_at | Yes | ||
| finished_at | Yes | ||
| language_breakdown | Yes |