Export a diagram
export_diagramExport a diagram as a drawio or SVG file, returning the file content directly. Free plan exports are available, but SVG exports may include a watermark.
Instructions
Export a diagram as a raw file: drawio (open at app.diagrams.net) or svg. Returns the file content directly. Exports are free on every plan. Free-plan SVG exports carry a watermark.
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": {
"diagram_id": "<diagram_id>"
},
"name": "export_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | drawio or svg | drawio |
| diagram_id | Yes | The diagram id |