Cancel a generation
cancel_generationStop one of your takes that is still queued or being generated, so it no longer waits or uses your allowance; generationId is the id speak returned. A take that already finished is answered with cancelled: false and its status. Returns a confirmToken first: tell the user which take will be stopped, then call again with the token.
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": {
"generationId": "<generationId>"
},
"name": "cancel_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmToken | No | From the previous answer's next.args. | |
| generationId | Yes | The id returned by the speak tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| cancelled | Yes | ||
| generationId | Yes |