Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

find_nodes_by_name

Search within a parent node for Figma layers matching a name pattern, including wildcard matches, and filter results by node type.

Instructions

Find nodes by name pattern within a parent node

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>",
      "pattern": "<pattern>"
    },
    "name": "find_nodes_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOptional: filter by node type (e.g., 'TEXT', 'FRAME', 'COMPONENT')
nodeIdYesThe ID of the parent node to search within
patternYesName pattern to search for (supports * wildcard)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

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 very little. It does not say whether the search is recursive into descendants or limited to direct children, whether matching is case-sensitive, or what the result contains (IDs vs. full node objects). For a tree-search tool, the recursion question alone is critical to invoking it correctly.

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 tight sentence with the scope front-loaded and no filler. It is efficiently written, though the brevity leaves real questions unanswered rather than being optimally sized for a search tool.

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?

With no annotations and no output schema, the description must cover both behavior and returns, and it covers neither. The agent cannot tell traversal depth, matching rules, or result shape, which are exactly what a node-tree search needs.

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 nodeId, pattern, and the optional type filter all documented inline, including the '*' wildcard support. The description restates the parent/pattern relationship without adding syntax, format, or defaulting details beyond the schema, so 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?

The description states a specific verb and resource ('Find nodes by name pattern') and a scope ('within a parent node'), which implicitly separates it from type-based or text-based scans. It stops short of naming a sibling such as get_children or scan_nodes_by_types, so the agent must infer the boundary.

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 explicit guidance on when to choose this over get_children, scan_text_nodes, or scan_nodes_by_types, nor any stated prerequisites. The only usage signal is the embedded 'within a parent node' scoping phrase, which is inferred rather than stated.

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