set_parent
Move a Figma node into a section, frame, or group while preserving its absolute position. Optionally set x/y coordinates and child index for exact placement.
Instructions
Move a node into a new parent node (e.g. a section, frame or group). Preserves the node's absolute position; each provided x/y coordinate overrides that axis relative to the new container
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional X position relative to the new container | |
| y | No | Optional Y position relative to the new container | |
| index | No | Optional child index to insert at (default: appended as last child) | |
| nodeId | Yes | The ID of the node to move | |
| parentId | Yes | The ID of the new parent node (must support children, e.g. a section, frame or group) |