Create draw.io diagram
create_diagramCreate editable .drawio XML diagram files from nodes, groups, and edges, automatically laying out the structure for further use.
Instructions
Create a new editable .drawio XML diagram from structured groups, nodes, and edges with automatic layout.
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": {
"output_path": "<output_path>",
"nodes": "<nodes>"
},
"name": "create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | ||
| nodes | Yes | ||
| title | No | ||
| groups | No | ||
| direction | No | ||
| overwrite | No | ||
| page_name | No | ||
| output_path | Yes |