reparent_nodes
Move Figma nodes to a new parent, optionally at an insertion index. Repositioned elements shift relative to the new parent; missing nodes are skipped.
Instructions
Move nodes into a different parent, optionally inserting at index (default: appended last). On-screen positions may shift because coordinates become relative to the new parent; nodes that no longer exist are skipped. To reorder within the current parent use reorder_nodes; to wrap nodes in a new frame/group use group_nodes. Returns { ok, affected }.
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>",
"newParentId": "<newParentId>"
},
"name": "reparent_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Optional insertion index within the new parent | |
| nodeIds | Yes | Node ids to move | |
| newParentId | Yes | Id of the parent to move them into |