Skip to main content
Glama

figma_update_node

Update a Figma node: change text, apply text/fill styles, adjust layout, toggle visibility, set position, reparent, or switch pages. Uses design system tokens when available.

Instructions

Mutates an existing Figma node or the editor's UI focus, dispatched by op. Ops: "text" (set text content), "text_style" (apply DS text style), "fill" (fillStyleId/fillVariable/raw fill), "layout" (sizing, padding, gap, alignment), "visibility" (show/hide), "position" (absolute x/y), "restyle" (artboard/frame fill+radius+stroke+padding+gap in one call), "move" (reparent via parentId+index), "select" (select+scroll into view), "page" (switch page by name/id). All ops except "select"/"page" require Phase 2 (DS discovered) and validate any *Variable path against the cached DS before sending. Use figma_delete_node (separate, destructive tool) to remove a node instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoAbsolute x position. op="position".
yNoAbsolute y position. op="position".
opYesWhich mutation to perform.
fillNoRaw color as hex string ("#3b36f2") or RGB object. op="fill" fallback when no DS styles/variables available.
indexNoInsert index within the new parent. op="move". Omit for end.
widthNoFixed width. op="layout".
heightNoFixed height. op="layout".
nodeIdNoTarget node ID. Required for every op except "page".
pageIdNoPage ID to switch to. op="page". Takes precedence over pageName.
contentNoNew text content. op="text".
visibleNoTrue to show, false to hide. op="visibility".
maxWidthNoMax width constraint. op="layout".
pageNameNoPage name to switch to. op="page".
parentIdNoNew parent node ID. op="move".
fillStyleIdNoDS fill style key (from figma_list_ds). op="fill". Priority: fillStyleId → fillVariable → fill.
gapVariableNoDS variable for item spacing. op="layout" or "restyle".
textStyleIdNoDS text style key. op="text_style".
fillVariableNoDS variable path for fill color. op="fill" or "restyle".
strokeWeightNoStroke weight. op="restyle".
strokeVariableNoDS variable for stroke color. op="restyle".
paddingVariableNoDS variable for uniform padding. op="layout" or "restyle".
paddingTopVariableNoop="layout".
paddingLeftVariableNoop="layout".
cornerRadiusVariableNoDS variable for corner radius. op="restyle".
layoutSizingVerticalNoop="layout".
paddingRightVariableNoop="layout".
counterAxisAlignItemsNoop="layout".
paddingBottomVariableNoop="layout".
primaryAxisAlignItemsNoop="layout".
layoutSizingHorizontalNoop="layout".
Behavior5/5

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

The description states the mutation nature (consistent with readOnlyHint=false) and specifies prerequisites like Phase 2 and DS validation for variable paths. It also notes that fill has fallback logic. No annotation contradiction; annotations are supported by the description.

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?

The description is well-structured: main purpose first, then ops in parentheses, then conditions via semicolons. It's moderately long but justified by the tool's complexity (30 params, 10 ops). No redundancy; each sentence adds value.

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

Completeness5/5

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

Given the high complexity of the tool, the description is remarkably complete. It covers all operations, prerequisites, fallbacks, and even mentions the sibling tool for deletion. No output schema is present, so return values are not expected. The description leaves no critical gaps.

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

Parameters4/5

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

All 30 parameters are already documented in the input schema (100% coverage), so the description's added value is primarily in grouping params by op and explaining their contextual use. This extra organization is helpful but not essential given the schema's quality.

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

Purpose5/5

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

The description clearly states it mutates a Figma node or editor focus via an 'op' parameter. It enumerates all 10 operations with brief explanations, distinguishing this tool from sibling 'figma_delete_node' which is for removal. The verb 'mutates' and resource 'Figma node or UI focus' are specific and accurate.

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

Usage Guidelines5/5

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

Explicit guidance is provided: which ops require Phase 2, which do not (select/page), and when to use alternative tool 'figma_delete_node' for removal. It also explains fallback behavior for fill operations. This helps the agent select the correct operation and avoid misuse.

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

Install Server

Other Tools

Latest Blog Posts

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/miapre/mimic-ai'

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