distribute_nodes
Evenly spaces selected nodes along a horizontal or vertical axis. Set a fixed gap to lay them out sequentially; omit it to equalize spacing between the outermost nodes.
Instructions
Distribute nodes along an axis (ordered by current position). Without gap: the outermost nodes stay put and the spacing between them is equalised (needs ≥3 nodes). With gap: nodes are laid out sequentially from the first one with that fixed spacing. Works in absolute coordinates; per-node errors are reported.
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": {
"nodeIds": "<nodeIds>"
},
"name": "distribute_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gap | No | Fixed spacing in px; omit to equalise between the extremes | |
| axis | No | Default horizontal | |
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| nodeIds | Yes |