cancel_generation
Use this when the user wants to stop a Pin generation started by generate_pins_from_url before it runs. It only works while the generation is still queued: a cancelled generation is never charged and reads back as failed with failureCode generation-cancelled. Most generations start within seconds; after that the credits are committed and the cancel is refused, so poll get_generation_status until it finishes and use delete_post on any resulting drafts the user does not want. A 404 within ~10 seconds of starting the generation is a transient indexing artifact: retry the cancel, don't stop.
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 |
|---|---|---|---|
| generationId | Yes | Generation ID returned by generate_pins_from_url |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generation | Yes |