set_parent
Move a Figma node into a new parent such as a section, frame, or group. Keeps the node's absolute position unless you pass x/y coordinates.
Instructions
Move a node into a new parent node (e.g. a section, frame or group). Preserves the node's absolute position unless x/y are provided
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>",
"parentId": "<parentId>"
},
"name": "set_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional X position relative to the new parent | |
| y | No | Optional Y position relative to the new parent | |
| 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) |