Skip to main content
Glama

find_replace_text

Replace text across Figma text nodes by specifying a substring and replacement. Optionally scope the search to a node, enable case-sensitive matching, and receive the IDs of updated text nodes.

Instructions

Replace a substring across all TEXT nodes under a scope. Without root the whole current page is searched; matching is case-insensitive unless caseSensitive is true. Fonts are loaded before each edit. Returns { ok, affected } — the text node ids changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYesSubstring to find (non-empty)
rootNoOptional node id to scope the search (default: page)
replaceYesReplacement string
caseSensitiveNoMatch case (default false)
Behavior4/5

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

Annotations only flag readOnlyHint=false and destructiveHint=false, so the description adds valuable behavioral context by disclosing that fonts are loaded before each edit and that the operation affects text nodes. It also explains the scope default and case sensitivity, which are beyond the structured fields. It does not contradict annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded, with the first sentence stating the core purpose. Each subsequent sentence adds a distinct piece of useful information (scope, case sensitivity, font loading, return value) with no redundancy or fluff.

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 tool with no output schema and four parameters, the description covers the essential usage semantics, return value, and a side effect (font loading). It could mention potential error conditions or confirm the batch nature, but it is largely complete for selecting and invoking the tool correctly.

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?

With 100% schema coverage, the description adds helpful context to parameters: it clarifies that 'root' defines the scope (defaulting to page), that 'caseSensitive' overrides the default case-insensitive matching, and that 'find'/'replace' are substring-based. This enrichment goes beyond the bare schema descriptions, meriting a 4 rather than baseline 3.

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

Purpose5/5

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

The description clearly states the verb ('replace'), resource ('substring across all TEXT nodes under a scope'), and distinguishes it from sibling text-editing tools by emphasizing the bulk scope operation. The alternative of searching the whole page when no root is given further clarifies its purpose.

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?

The description provides clear usage context, including the default scope (whole page) and case-sensitivity behavior, which implies when to use this tool. However, it does not explicitly name alternative tools or state when not to use it, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/awdr74100/figwright'

If you have feedback or need assistance with the MCP directory API, please join our Discord server