Loading...
Loading...
Generate draw.io diagrams as .drawio files, optionally export to PNG/SVG/PDF with embedded XML
npx skill4agent add jgraph/drawio-mcp drawio.drawio.drawio--embed-diagram.drawio.drawio/drawio create a flowchartflowchart.drawio/drawio png flowchart for loginlogin-flow.drawio.png/drawio svg: ER diagramer-diagram.drawio.svg/drawio pdf architecture overviewarchitecture-overview.drawio.pdf.drawio| Format | Embed XML | Notes |
|---|---|---|
| Yes ( | Viewable everywhere, editable in draw.io |
| Yes ( | Scalable, editable in draw.io |
| Yes ( | Printable, editable in draw.io |
| No | Lossy, no embedded XML support |
--embed-diagramdrawio/Applications/draw.io.app/Contents/MacOS/draw.iodrawio"C:\Program Files\draw.io\draw.io.exe"which drawiowhere drawiodrawio -x -f <format> -e -b 10 -o <output> <input.drawio>-x--export-f--format-e--embed-diagram-o--output-b--border-t--transparent-s--scale--width--height-a--all-pages-p--page-indexopen <file>xdg-open <file>start <file>login-flowdatabase-schemaname.drawio.pngname.drawio.svgname.drawio.pdf.drawio.drawio<mxGraphModel>
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- Diagram cells go here with parent="1" -->
</root>
</mxGraphModel>id="0"id="1"parent="1"<mxCell id="2" value="Label" style="rounded=1;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="100" y="100" width="120" height="60" as="geometry"/>
</mxCell><mxCell id="3" value="Condition?" style="rhombus;whiteSpace=wrap;" vertex="1" parent="1">
<mxGeometry x="100" y="200" width="120" height="80" as="geometry"/>
</mxCell><mxCell id="4" value="" style="edgeStyle=orthogonalEdgeStyle;" edge="1" source="2" target="3" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell><mxCell id="5" value="Yes" style="edgeStyle=orthogonalEdgeStyle;" edge="1" source="3" target="6" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>| Property | Values | Use for |
|---|---|---|
| 0 or 1 | Rounded corners |
| wrap | Text wrapping |
| Hex color | Background color |
| Hex color | Border color |
| Hex color | Text color |
| shape name | Database cylinders |
| shape name | Document shapes |
| style keyword | Circles/ovals |
| style keyword | Diamonds |
| style keyword | Right-angle connectors |
| style keyword | Elbow connectors |
| 0 or 1 | Dashed lines |
| style keyword | Swimlane containers |
----<!-- -->&<>"idmxCell