Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

set_text_style

Update an existing text node's font, size, alignment, line height, letter spacing, or sizing, including text inside an instance, to adjust typography in Figma designs.

Instructions

Change an existing text node's font, size, alignment, line height, letter spacing or sizing, including text inside an instance

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_text_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNoFixed width: the text wraps and its height follows
nodeIdYesThe text node's ID
fontSizeNoFont size
fontStyleNoThe family's own style name, e.g. "Regular", "Semibold", "Bold" for SF Pro
fontFamilyNoAny font installed for Figma, e.g. "SF Pro", "SF Pro Rounded", "New York"
lineHeightNoLine height in pixels
letterSpacingNoLetter spacing in pixels
textAutoResizeNo
textAlignVerticalNo
textAlignHorizontalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

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 behavioral burden and falls well short. It never says whether this is a partial update (only supplied fields change) versus a full restyle, what happens when fontFamily is given without a matching fontStyle, whether the font must already be installed, or what is returned on success/failure.

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 front-loaded sentence with no filler; the scope clarification about instance text is appended compactly. The trailing 'or sizing' is slightly vague, but nothing is wasted.

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 a 10-parameter mutation tool with no annotations and no output schema, the description is thin: it omits partial-update semantics, font availability constraints, and failure modes. Its only real additions over structured data are the 'existing node' precondition and the instance-text scope.

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 coverage is 70%, so the schema already documents most parameters with useful notes (e.g. fontStyle examples, width wrapping behavior). The description enumerates the property families it can change, which maps loosely onto font/size/alignment/lineHeight/letterSpacing but adds no format, unit, or mutual-dependency detail beyond the schema. Baseline 3 is appropriate.

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 ('Change') and resource ('an existing text node') plus an enumeration of the style properties it touches (font, size, alignment, line height, letter spacing, sizing). It implicitly separates itself from set_text_content (content vs. style), but never names a sibling, so differentiation is left to inference.

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 explicit when-to-use or when-not-to-use guidance. 'Change an existing text node's...' hints that the node must already exist (as opposed to create_text), and 'including text inside an instance' clarifies scope, but there is nothing telling the agent when to prefer apply_style or set_text_content instead.

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