Skip to main content
Glama

scan_text_nodes

Destructive

Extract all copy from Figma components and frames by scanning TEXT nodes in a subtree. Retrieves text content for auditing, localization, and design documentation.

Instructions

Scan all TEXT nodes in a subtree. Useful for extracting all copy from a component or frame.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesRoot node ID to scan from, colon format e.g. '4029:12345'
Behavior1/5

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

The description implies a read-only operation ('Scan', 'extracting'), but annotations indicate destructiveHint=true and readOnlyHint=false. This is a serious contradiction—scanning and extracting typically imply observation, not destruction. The description fails to explain what gets destroyed or why this mutates state.

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?

Two efficient sentences with zero waste. The first sentence front-loads the core capability, and the second provides immediate use-case context. No redundant or filler text.

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?

Lacks output schema and fails to describe return values (what format do the scanned text nodes return?). Critically incomplete due to the unexplained destructive annotation—without knowing what gets destroyed, the tool is unsafe to invoke. Does not compensate for missing safety information.

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?

With 100% schema coverage, the nodeId parameter is already well-documented with format examples in the schema. The description mentions 'in a subtree' which aligns with the 'Root node ID' schema description but adds minimal semantic value beyond the structured definition.

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 specific action ('Scan'), resource ('TEXT nodes'), and scope ('in a subtree'). The second sentence clarifies the use case ('extracting all copy'), effectively distinguishing this from generic node retrieval tools like get_node.

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 description provides implied usage context ('Useful for extracting all copy from a component or frame'), indicating when to use it. However, it lacks explicit when-not guidance or mentions of alternatives like scan_nodes_by_types or get_nodes_info.

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/vkhanhqui/figma-mcp-go'

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