Delete pages
delete_pagesDelete one or more pages of a template, with their layers and motion. Every page is checked before any is deleted: an unknown id, or a call that would delete every page of a template (a template keeps at least one), refuses the whole call and nothing is deleted. Deleted pages cannot be brought back, not even with undo; confirm with the user first. Returns the deleted page_ids and their template_ids. Use it to remove sizes or variants the user no longer wants; to remove layers inside a page use delete_layers.
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": {
"page_ids": "<page_ids>"
},
"name": "delete_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_ids | Yes | The pages, from list_pages or create_design. |