reorder_nodes
Change the z-order or layer order of Figma nodes within their parent: send to front/back, move forward/backward, or set a numeric index, including item order in auto-layout frames.
Instructions
Change z-order (layer order) of nodes within their parent: 'front' (top), 'back' (bottom), 'forward' / 'backward' (one step), or a numeric index (0 = bottom). In auto-layout frames this also changes item order. Returns per node its new index.
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>",
"to": "<to>"
},
"name": "reorder_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| nodeIds | Yes | Figma node ids, e.g. ['12:34'] |