get_page
Reads one diagram page from a local .drawio file and returns its raw mxGraphModel XML, decompressing it when needed. Use list_pages first to find the page index, name, or id.
Instructions
Reads one page (diagram) from a local .drawio file and returns its raw mxGraphModel XML, decompressing it first if the file stores that page compressed. Use list_pages first to find the index, name, or id of the page you need.
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": {
"path": "<path>",
"page": "<page>"
},
"name": "get_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Which page to read: a zero-based page index (e.g. "0"), the page's exact name, or the page's id as shown by list_pages. | |
| path | Yes | Absolute or relative path to the local file. Must end in .drawio or .xml. |