arrange_grid
Lay out Figma nodes in a row-by-row grid, sizing columns to the widest node and rows to the tallest for variant or component sheets.
Instructions
Lay out nodes in a grid in the given order (row by row). Column width = widest node in that column, row height = tallest node in that row. Origin defaults to the top-left of the nodes' current union bounds (absolute coordinates). Handy for variant / component sheets.
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>",
"columns": "<columns>"
},
"name": "arrange_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Origin x (absolute) | |
| y | No | Origin y (absolute) | |
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| gapX | No | Horizontal gap, default 0 | |
| gapY | No | Vertical gap, default 0 | |
| columns | Yes | ||
| nodeIds | Yes |