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.
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 |