create_state_diagram
Create UML state machine diagrams with states, transitions, initial/final markers, and labels. Generates an editable Excalidraw file from structured input.
Instructions
Create a UML state machine diagram.
Generates a state diagram with states (rounded rectangles), initial states (filled circles), final states (double border), and transition arrows with labels.
Args: states: List of state definitions transitions: List of transitions between states title: Optional diagram title output_path: Optional output file path theme: Color theme - "light" or "dark"
Returns: Absolute path to the generated .excalidraw file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | light | |
| title | No | ||
| states | Yes | ||
| output_path | No | ||
| transitions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |