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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | drawio or svg | drawio |
| diagram_id | Yes | The diagram id |