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.
Input Schema
TableJSON 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) |