Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

set_text_style

Updates typography and text box sizing on an existing Figma text node without replacing its content, including font, color, alignment, line height, and wrapping width.

Instructions

Modify typographic properties of an existing text node without replacing its content. Also use to set or update text box width and wrapping.

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
widthNoFix column width in px to enable wrapping
heightNoFix height in px (clips content)
nodeIdYesFigma node ID
fontSizeNo
fillColorNo
fontStyleNoe.g. Regular, Bold, Italic
textAlignNo
fontFamilyNo
lineHeightNoLine height in pixels or 'AUTO'
letterSpacingNoLetter spacing in pixels
textAutoResizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses one useful trait — content is preserved, not replaced — but says nothing about whether unspecified properties are reset or merged, what happens if nodeId is not a text node, what permissions or page context are required, or how failures surface. For a mutation tool with 11 parameters, that is a substantial gap.

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?

Two short sentences with no filler, and the core purpose is front-loaded ahead of the secondary width/wrapping use case. The phrasing "Also use to set" is slightly awkward but costs no comprehension.

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

Completeness3/5

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

There is no output schema, so the description need not explain returns, but with 11 parameters, nested fillColor, two enums, and zero annotations, the definition is thinner than the tool's complexity warrants. An agent can guess the general intent but not the merge semantics or failure modes.

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

Parameters2/5

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

Schema description coverage is only 55%, so the description must compensate, and it largely does not. It gestures at "typographic properties" and ties width to wrapping, but adds no meaning for fontSize, fontFamily, textAlign, textAutoResize, lineHeight, letterSpacing, height clipping, or the fillColor object — all of which are left to schema-only or entirely undocumented.

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?

"Modify typographic properties of an existing text node" gives a specific verb and resource, and the clause "without replacing its content" sharpens what kind of modification this is. It does not distinguish itself from siblings like apply_style or set_fill_color, which plausibly overlap with the fillColor and styling parameters, so sibling 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 Guidelines3/5

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

The second sentence does route the agent here for width/wrapping changes, which is a genuine when-to-use signal beyond the tool name. There is no when-not guidance, no mention of apply_style as an alternative for shared styling, and no stated prerequisite that the target node must already be a text node.

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