Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

set_auto_layout

Configure auto-layout properties on a Figma frame, including direction, padding, spacing, wrap, and alignment, to keep layouts responsive to content changes.

Instructions

Configure auto-layout properties on a frame in Figma

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>"
    },
    "name": "set_auto_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoLayout direction
nodeIdYesThe ID of the frame to modify
layoutWrapNoWrap behavior for auto-layout
paddingTopNoTop padding
itemSpacingNoSpacing between items
paddingLeftNoLeft padding
paddingRightNoRight padding
paddingBottomNoBottom padding
counterAxisSpacingNoSpacing between wrapped rows/columns
counterAxisAlignItemsNoCounter axis alignment
primaryAxisAlignItemsNoPrimary axis alignment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden, yet it only says 'configure'. It does not say whether this is additive or replaces existing auto-layout settings, what mode=NONE does (presumably disables auto-layout), whether omitted parameters are left untouched or reset, or whether the change is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence that front-loads the action and resource with zero padding. It is efficient but arguably under-specified rather than deliberately terse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter mutation tool with no annotations and no output schema, the one-line description is too thin: it omits side effects, interaction between padding/spacing and mode, and what the caller gets back. The rich schema helps parameters but does not compensate for missing behavioral context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with per-field descriptions and enum values, so the schema already documents all 11 parameters including the four enums. The description adds no meaning beyond that, which is the baseline expectation when the schema is self-sufficient.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Configure auto-layout properties on a frame in Figma'), so an agent knows it mutates layout settings rather than fills, strokes, or constraints. It does not differentiate itself from the many sibling set_* tools beyond the resource name, and never mentions what a 'frame' means in this context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites (e.g., that the target node must be a frame or that mode=NONE removes auto-layout), and no mention of any alternative approach. The agent must infer all selection criteria from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.