create_flowchart
Generate flowchart diagrams from simple arrow-based graph specifications with automatic node positioning and configurable layout direction, shapes, and colors.
Instructions
Create a flowchart diagram with automatic layout. Uses DagreJS for optimal node positioning.
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": {
"graphSpec": "<graphSpec>"
},
"name": "create_flowchart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startX | No | Starting X position (default: 100) | |
| startY | No | Starting Y position (default: 100) | |
| rankdir | No | Layout direction: TB (top-bottom), LR (left-right), BT, RL (default: TB) | |
| nodeType | No | Shape type for nodes (default: rectangle) | |
| graphSpec | Yes | Graph specification in simple format: "A --> B --> C" or multi-line with arrows on separate lines | |
| strokeColor | No | Stroke color (default: #1e1e1e) | |
| backgroundColor | No | Background/fill color (default: #f5f5f5) |