reparent_node
Move an existing Figma node into a new parent frame, section, group, auto-layout, slot, or page. Use index to set child order; pass x/y only for overlays with ignoreAutoLayout.
Instructions
Move (cut) an existing node into a new parent container (frame, section, group, auto-layout, slot, or page). Inside auto layout the node joins the flow (omit x/y, pass index). Pass ignoreAutoLayout + x/y only for overlays.
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": {
"nodeId": "<nodeId>",
"newParentId": "<newParentId>"
},
"name": "reparent_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Parent-relative x. Ignored inside auto layout unless ignoreAutoLayout is true. | |
| y | No | ||
| index | No | Insert at this child index instead of appending at the end. Controls order inside auto-layout containers. | |
| nodeId | Yes | ||
| newParentId | Yes | ||
| ignoreAutoLayout | No | ||
| layoutSizingVertical | No | FIXED | HUG | FILL | |
| layoutSizingHorizontal | No | FIXED | HUG | FILL |