Skip to main content
Glama
figma-mcp
by ivn4k

Find nodes

find_nodes
Read-only

Search Figma layers by name, type, or text content to locate nodes and retrieve their IDs, names, parents, bounds, and text for TEXT layers.

Instructions

Search layers by name, type and/or text content. Returns id, name, type, parent, bounds (and text for TEXT nodes).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCase-insensitive substring of the layer name
textNoCase-insensitive substring of TEXT content
limitNo
typesNoe.g. ["FRAME","TEXT","INSTANCE","COMPONENT","COMPONENT_SET"]
rootIdNoSearch inside this node or page id; "all" = every page (slow on big files). Default: current page
nameRegexNoJavaScript regular expression for the layer name (case-insensitive)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

The readOnlyHint annotation already tells the agent this is a safe, non-mutating operation, so the description's main added value is the return shape and the fact that TEXT nodes carry an extra text field. It says nothing about result truncation from the limit default of 50, pagination behavior, ordering, or the performance cost of rootId="all" beyond what the schema already states.

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 sentences, zero filler, with the search capability front-loaded and the return payload immediately after. Every clause carries information an agent needs before calling.

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, and the description compensates by enumerating return fields, which is the right move. However, for a six-parameter search tool it omits the most consequential behavioral fact an agent needs — that results are capped at the limit (default 50) — so a caller could silently miss matches.

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 83%, so the schema already documents each parameter including the rootId="all" caveat and the limit bounds. The description confirms which filters exist (name, type, text) but adds no semantics such as how name and nameRegex interact or which filter wins when multiple are supplied.

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?

States a specific verb (search) and resource (layers/nodes) plus the three filter dimensions and the returned fields, which is well beyond restating the name. It does not explicitly distinguish itself from the sibling get_nodes (fetch by id) or get_selection, so an agent must infer that split from the names alone.

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?

"Search layers by name, type and/or text content" implies when the tool applies, and the schema's rootId note hints at scoping tradeoffs. There is no explicit when-to-use or when-not-to-use statement, and no mention of get_nodes for direct id lookups or get_selection for current-selection work.

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