Skip to main content
Glama
southleft

figma-console-mcp

by southleft

figma_set_text

Set a Figma text node’s content and optional styling—font size, family/style, wrap style, and variable-font axes—without raw execute calls.

Instructions

Set the text content of a text node. Optionally adjust font size and the font family/style, the text wrap style (BALANCE or PRETTY, like CSS text-wrap), and variable-font axes (fontVariations, e.g. {wght: 550}). Font style names are space-sensitive ('Semi Bold', not 'SemiBold'), but this tool auto-corrects common no-space variants and falls back gracefully — so you don't need raw figma_execute to change typography. text can be left out to change only the styling.

Input Schema

NameRequiredDescriptionDefault
textNoThe new text content. Leave out to change only the styling
nodeIdYesThe text node ID
fontSizeNoOptional font size to set
fontStyleNoOptional font style/weight to apply (e.g., 'Bold', 'Semi Bold'). No-space variants like 'SemiBold' are auto-corrected.
fontFamilyNoOptional font family to apply (e.g., 'Inter')
textWrapStyleNoHow lines break: AUTO (default), BALANCE (even line lengths, for headings) or PRETTY (avoids a lone last word)
fontVariationsNoVariable-font axis values by OpenType tag, e.g. {wght: 550, slnt: -5}. Axes you leave out keep the named style's values

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries full burden. It adds that this is a mutation ("set"), that style variants are auto-corrected and "fall back gracefully," and that {wght: 550} axes can be set—good detail. But "falls back gracefully" is vague (to what?), and it says nothing about return value, failure modes, or undoability.

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?

Front-loaded with the core action, followed by optional-field notes and the fallback reassurance. The middle sentence about auto-correction is useful; the trailing "text can be left out" is the strongest signal and could be earlier, but the structure is sound overall.

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

Completeness4/5

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

For a 7-param mutation tool with no annotations and no output schema, this explains all functional parameters and the styling behavior sufficiently to call it correctly. The lone gap is behavioral around failure/response, which is minor for a simple text-setter.

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?

Schema coverage is 100%, so baseline is 3. The description reinforces meaning with a conceptual anchor—"BALANCE or PRETTY, like CSS text-wrap"—and gives the concrete fontVariations example {wght: 550}, adding real semantic value over the raw schema for a non-obvious enum.

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?

"Set the text content of a text node" states a specific verb+resource, and the sentence names the alternative (raw figma_execute) explicitly. It stops just short of distinguishing from siblings like figma_add_text_to_slide, but the operation is unmistakable.

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

Usage Guidelines4/5

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

"You don't need raw figma_execute to change typography" routes the agent away from the generic escape hatch, and "text can be left out to change only the styling" clarifies the conditional use case. No explicit exclusion of what this tool should NOT be used for, so not a 5.

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

Deploy Server

Other Tools