append_to_slot
Reparent existing Figma nodes into a SLOT so they join its layout flow, with optional index and layout sizing. Use this instead of moving nodes afterward.
Instructions
Reparent existing nodes into a SLOT. Children join the slot's layout flow (AUTO + FILL when the slot is auto layout) at 0,0 when it is freeform. Do not move_node afterwards. Optionally pass index and layoutSizing.
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": {
"slotNodeId": "<slotNodeId>",
"nodeIds": "<nodeIds>"
},
"name": "append_to_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| nodeIds | Yes | ||
| slotNodeId | Yes | ||
| ignoreAutoLayout | No | ||
| layoutSizingVertical | No | FIXED | HUG | FILL | |
| layoutSizingHorizontal | No | FIXED | HUG | FILL — default FILL when the slot itself is auto layout. |