drawio_create_diagram
Create editable draw.io diagrams from nodes and edges, with automatic or manual layout and optional PNG, SVG, or PDF export for flowcharts, architecture, UML, and network maps.
Instructions
[draw.io: diagrams (flowcharts, block diagrams, architecture, UML, network) as editable files and PNG/SVG/PDF] Build a .drawio diagram from nodes [{id,label,shape?,style?,x?,y?,width?,height?}] and edges [{source,target,label?,style?}].
Shapes: rectangle, rounded, ellipse, circle, rhombus/decision, process, terminator, start, end, document, cylinder/database, cloud, note, hexagon, parallelogram/data, triangle, actor, text, card, step, container/swimlane, cube, component, umlclass. Layout is automatic (layered, direction TB or LR) unless x/y are given. Set export_format=png|svg|pdf to also render.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | ||
| nodes | Yes | ||
| title | No | Page-1 | |
| direction | No | TB | |
| output_file | No | ||
| export_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||