Skip to main content
Glama

set_auto_layout

Configure Figma node layouts by setting, updating, or removing auto-layout modes (HORIZONTAL, VERTICAL, NONE), spacing, and padding for FRAME, COMPONENT, or INSTANCE elements.

Instructions

Set, update, or delete one or more layout grids on Figma nodes (FRAME, COMPONENT, INSTANCE).

Returns: Array of result objects for each operation.

Input Schema

NameRequiredDescriptionDefault
layoutNoA single auto-layout configuration. Optional.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "layout": { "additionalProperties": false, "description": "A single auto-layout configuration. Optional.", "properties": { "itemSpacing": { "description": "Spacing between items in pixels. Optional.", "type": "number" }, "layoutWrap": { "description": "The layout wrap mode: \"NO_WRAP\" or \"WRAP\". Optional.", "enum": [ "NO_WRAP", "WRAP" ], "type": "string" }, "mode": { "description": "The auto layout mode to set: \"HORIZONTAL\", \"VERTICAL\", or \"NONE\".", "enum": [ "HORIZONTAL", "VERTICAL", "NONE" ], "type": "string" }, "nodeId": { "description": "The unique Figma node ID to update.", "type": "string" }, "padding": { "additionalProperties": false, "description": "Padding object with top, right, bottom, left properties. Optional.", "properties": { "bottom": { "description": "Bottom padding in pixels. Optional.", "type": "number" }, "left": { "description": "Left padding in pixels. Optional.", "type": "number" }, "right": { "description": "Right padding in pixels. Optional.", "type": "number" }, "top": { "description": "Top padding in pixels. Optional.", "type": "number" } }, "type": "object" } }, "required": [ "nodeId", "mode" ], "type": "object" } }, "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