Skip to main content
Glama

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

NameRequiredDescriptionDefault
childIdNoID of the child node to insert
indexNoOptional insertion index (0-based)
operationsNoAn array of set/insert operations to perform in batch. Optional.
optionsNoOptions for the operation (e.g., skipErrors). Optional.
parentIdNoID of the parent node

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "childId": { "description": "ID of the child node to insert", "type": "string" }, "index": { "description": "Optional insertion index (0-based)", "minimum": 0, "type": "integer" }, "operations": { "description": "An array of set/insert operations to perform in batch. Optional.", "items": { "additionalProperties": false, "properties": { "childId": { "description": "ID of the child node to insert", "type": "string" }, "index": { "description": "Optional insertion index (0-based)", "minimum": 0, "type": "integer" }, "maintainPosition": { "description": "Maintain child's absolute position (default: false)", "type": "boolean" }, "parentId": { "description": "ID of the parent node", "type": "string" } }, "required": [ "parentId", "childId" ], "type": "object" }, "type": "array" }, "options": { "additionalProperties": false, "description": "Options for the operation (e.g., skipErrors). Optional.", "properties": { "skipErrors": { "description": "If true, skip errors and continue processing remaining operations in batch mode.", "type": "boolean" } }, "type": "object" }, "parentId": { "description": "ID of the parent node", "type": "string" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalinakurniasari/conduit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server