workflow.layoutNodes
Automatically arranges nodes in flowcharts using the dagre algorithm to create clean, organized layouts with optimized edge connections.
Instructions
Auto-layout specific nodes using dagre (longest-path algorithm). Positions nodes and optimizes edge handles for clean flowchart appearance.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "workflow.layoutNodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeIds | No | Array of node IDs to layout. Omit to layout all connected nodes. | |
| direction | No | Layout direction: "vertical" (default) or "horizontal" | |
| spacing | No | Gap between nodes in pixels (default: 80) |