Get diagram
get_diagramFetch the current diagram XML from the live browser canvas, including manual edits, to inspect structure, pages, and cell IDs before editing or after a rejected change.
Instructions
Get the current diagram XML (fetches latest from browser, including user's manual edits). Call this when you don't know the current diagram content (cell IDs, pages, structure) — e.g. before editing a diagram you didn't create in this conversation, or after edit_diagram was rejected because the user changed the diagram in the browser.
Returns the full by default. If a page selector is provided, returns just that page's embedded in a one-page wrapper.
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": "get_diagram"
}
}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. |