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
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": {
"states": "<states>",
"transitions": "<transitions>"
},
"name": "create_state_diagram"
}
}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 |