canvas_page_delete
Delete a tldraw canvas page and all its shapes; orphaned portal shape IDs are returned for deliberate re-linking or removal. Refuses to delete the last page.
Instructions
Delete a tldraw page of a canvas along with every shape on it. Portals elsewhere that pointed at it are NOT deleted (live clients show "target page not found"); their shape ids come back as orphanedPortals so you can re-link or delete them deliberately. Refuses to delete the last page.
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": {
"canvas": "<canvas>",
"page": "<page>"
},
"name": "canvas_page_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Tldraw page to delete (name or page record id) | |
| graph | No | Graph name or nickname. Auto-selects if only one graph is configured. | |
| canvas | Yes | Canvas page title (e.g. 'Canvas/My Map') or its 9-char page uid |