Export an editable Draw.io diagram
export_drawioConverts scene geometry into editable Draw.io cells with attached connectors and returns native mxfile or mxGraphModel XML for import and further editing.
Instructions
Convert supplied scene geometry into native Draw.io cells with attached connectors. Return an uncompressed mxfile document or a bare mxGraphModel. Labels are escaped, not executed. Does not recognize images, automatically infer layout, open an editor or write files. Max 32 KiB/200 elements input and 96 KiB XML.
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": {
"scene": "<scene>"
},
"name": "export_drawio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | ||
| pageName | No | Diagram | |
| container | No | file |