create_diagram
Create architecture diagrams from structured nodes and connections. Automatically handles layout, styling, and rendering without manual coordinates.
Instructions
Create a new Excalidraw diagram from structured node and connection data.
The LLM provides a relationship map - this tool handles layout, styling, and rendering. No need to specify coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | List of nodes. Each dict has: - id (str, required): Unique identifier - label (str, required): Display text - component_type (str, optional): Technology name for auto-styling (e.g., "kafka", "postgresql", "redis", "nginx", "kubernetes"). If omitted, the label is used for auto-detection. - shape (str, optional): Override shape - "rectangle", "diamond", "ellipse", "circle", "stadium", "parallelogram" | |
| connections | Yes | List of connections. Each dict has: - from_id (str, required): Source node id - to_id (str, required): Target node id - label (str, optional): Edge label text - style (str, optional): "solid", "dashed", "dotted", "thick" | |
| output_path | Yes | File path to save the .excalidraw file (e.g., "./arch.excalidraw") | |
| direction | No | Layout direction - "LR" (left-right), "TD" (top-down), "BT" (bottom-up), "RL" (right-left). Default: "LR" | LR |
| theme | No | Color theme - "default", "dark", "colorful". Default: "default" | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |