Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

set_text_content

Replace the text content of a Figma text node by node ID, enabling MCP clients to update existing copy directly in the design file.

Instructions

Replace a text node's text

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>",
      "text": "<text>"
    },
    "name": "set_text_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesNew text content
nodeIdYesThe ID of the text node to modify

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 it discloses almost nothing. "Replace" implies the prior text is overwritten and unrecoverable, but the description never says so, nor does it mention prerequisites such as the node existing, being a text node, or needing its font loaded before the write.

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 phrase with zero filler. It is arguably too terse for a mutation tool, but nothing in the wording is wasted or buried.

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?

The tool is simple (two required string params, flat schema, no output schema), so not much prose is needed. However, with no annotations at all, the description leaves an agent without any statement of mutability, reversibility, or failure conditions, which is a meaningful gap for a write operation.

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%, with both nodeId and text documented in the schema. The description adds no format hints, ID sourcing guidance, or constraints beyond that, so the baseline 3 applies.

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?

"Replace a text node's text" states a specific verb (replace) and a specific resource (a text node's text content), which is enough to tell it apart from create_text (creation) and set_text_style (styling). It stops short of naming any sibling explicitly, so the differentiation is inferable rather than stated.

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 set_multiple_text_contents (the batch sibling) or create_text. An agent must infer from the name alone that this targets a single existing node and that batch edits should route elsewhere.

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