reparent_nodes
Move one or more Figma nodes into a new parent such as a frame, group, section, page, or component, preserving position by default and reporting per-node results.
Instructions
Move nodes into another parent (frame, group, section, page, component...). index inserts at that z-position (0 = bottom; multiple nodes go in consecutively); default is on top. keepPosition (default true) preserves the absolute on-canvas position unless the new parent's auto layout controls it. Returns per-node results ({id, ok, ...} or {id, error}); one failing node does not abort the batch.
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>",
"parentId": "<parentId>"
},
"name": "reparent_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Target file (fileKey, id or name). Defaults to the most recently active file. | |
| index | No | ||
| nodeIds | Yes | Figma node ids, e.g. ['12:34'] | |
| parentId | Yes | New parent node id (a page id moves to top level of that page) | |
| keepPosition | No | Default true |