align_nodes
Align Figma nodes by left, horizontal-center, right, top, vertical-center, or bottom edges to selection bounds, a parent frame, or another node; the target node stays fixed.
Instructions
Align nodes' edges or centers: left|hcenter|right|top|vcenter|bottom. to: 'selection' (default — the union bounds of the given nodes), 'parent' (each node's parent frame), or a node id (that node's bounds; it is not moved).
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>",
"align": "<align>"
},
"name": "align_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 'selection' (default), 'parent', or a node id | |
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| align | Yes | ||
| nodeIds | Yes |