Delete page
delete_pageRemove a page or tab from the current diagram by ID, name, or index. It blocks deleting the last remaining page so the editor keeps at least one tab.
Instructions
Delete a page (tab) from the current diagram. At least one of page_id / page_name / page_index is required. Refuses to delete the last remaining page — the editor needs at least one tab.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | No | Target a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set. | |
| page_name | No | Target a page by its display name (e.g. "CNN"). Used only when page_id is not set. | |
| page_index | No | Target a page by its 0-based tab index. Used only when page_id and page_name are not set. |