distribute_elements
Spaces selected FigJam elements evenly in a horizontal or vertical direction, enforcing a minimum gap and resizing parent sections to fit their children.
Instructions
Distribute elements evenly with equal spacing. Enforces a minimum gap (default 60px) so elements and connectors between them are never too tight. Also auto-resizes any parent sections to fit their children after distribution.
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": {
"elementIds": "<elementIds>",
"direction": "<direction>"
},
"name": "distribute_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spacing | No | Minimum gap in pixels between elements (default: 60). Increase for diagrams with connectors that need breathing room. | |
| direction | Yes | Distribution direction | |
| elementIds | Yes | IDs of elements to distribute (at least 3 for meaningful distribution) |