create_flowchart
Create a flowchart diagram from structured nodes and edges. Uses hierarchical auto-layout to arrange branches, cycles, and disconnected subgraphs, and outputs a hand-drawn style Excalidraw file.
Instructions
Create a flowchart diagram with Sugiyama hierarchical auto-layout.
Generates a hand-drawn style Excalidraw flowchart from nodes and edges. Handles branches, merges, cycles, and disconnected subgraphs. Supports Chinese/CJK text with accurate width estimation.
Args: nodes: List of nodes with label and optional color edges: List of edges connecting nodes (by label or 0-based index) direction: Layout direction - "LR" (left to right), "RL", "TB" (top to bottom), "BT" title: Optional diagram title output_path: Optional output file path (default: /tmp/flowchart.excalidraw) theme: Color theme - "light" (default) or "dark"
Returns: Absolute path to the generated .excalidraw file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes | ||
| theme | No | light | |
| title | No | ||
| direction | No | LR | |
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |