Cancel a queued generation
cancel_generationCancel a queued generation before processing starts to get a refund and free the queue slot. If the job is already in progress, it returns an explanation with the current status instead.
Instructions
Cancel a generation that is still WAITING in the queue — its charge is refunded and the queue slot freed. Only works before processing starts: once a worker has picked the job up it cannot be aborted, and this returns an explanation with the current status instead. Costs nothing.
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": {
"queueId": "<queueId>"
},
"name": "cancel_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queueId | Yes | The queueId from a previous generate_* call. |