set_node
Insert or set child nodes into parent nodes in Figma, specifying optional positions. Supports batch operations and error handling for managing complex node structures.
Instructions
Sets or inserts one or more child nodes into parent nodes at optional index positions in Figma.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the parentId, childId, index, success status, and any error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
childId | No | ID of the child node to insert | |
index | No | Optional insertion index (0-based) | |
operations | No | An array of set/insert operations to perform in batch. Optional. | |
options | No | Options for the operation (e.g., skipErrors). Optional. | |
parentId | No | ID of the parent node |