create_decision_tree
Create decision tree diagrams with decision and outcome nodes linked by labeled edges, producing Excalidraw files to visualize branching logic and decision flows.
Instructions
Create a decision tree diagram.
Generates a tree with diamond-shaped decision nodes and rectangular outcome nodes, connected by labeled edges.
Args: nodes: List of nodes with id, label, and type edges: List of edges with from, to, and optional label title: Optional diagram title output_path: Optional output file path theme: Color theme
Returns: Absolute path to the generated .excalidraw file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes | ||
| theme | No | light | |
| title | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |