Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

set_text_style

Adjust line height, letter spacing, font size, weight, alignment, case, and decoration on a Figma text node by ID.

Instructions

Set advanced text styling properties (line height, letter spacing, etc.)

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
nodeIdYesThe ID of the text node to style
fontSizeNoFont size in pixels
textCaseNoText case transformation
fontWeightNoFont weight (100-900)
lineHeightNoLine height (AUTO, or {value, unit})
letterSpacingNoLetter spacing in pixels
textDecorationNoText decoration
textAlignVerticalNoVertical text alignment
textAlignHorizontalNoHorizontal text alignment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.8/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. It implies mutation via "Set" but says nothing about whether changes are permanent, what happens to properties not specified, whether the target must be a text node, or what is returned.

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, though the trailing "etc." adds vagueness rather than information.

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?

A one-sentence description is thin for a nine-parameter mutation tool with no annotations and no output schema. It should at least note that this targets text nodes and that unspecified properties remain unchanged.

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%, so every one of the nine parameters is already documented with types, enums, and units. The description only echoes two of them (line height, letter spacing) and adds no formatting or interaction details beyond the schema, so the baseline of 3 applies.

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

Purpose3/5

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

"Set advanced text styling properties" gives a verb and a resource, and the parenthetical names line height and letter spacing. But "advanced" and "etc." are vague, and the description omits the majority of what it actually does (font size, weight, case, alignment, decoration), so an agent cannot tell the full scope from the text alone.

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 guidance on when to use this versus siblings such as set_text_content or set_multiple_text_contents, and no prerequisites stated (e.g., the node must be a text node, which only the schema implies).

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