Skip to main content
Glama

Find layers

find_nodes
Read-only

Search Figma layers by name or text content across a file, page, or node; filter by layer type and limit results to find specific elements.

Instructions

Search layers by name (or text content with text:true) across the file, a page, or inside a 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": {
      "query": "<query>"
    },
    "name": "find_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoWhich open Figma file (name or key) when several are connected. Default: the most recently active.
pageNoPage name or id; "*" or omitted = all pages.
textNoMatch text content of text layers instead of layer names.
limitNo
queryYesCase-insensitive substring.
typesNoLayer types, e.g. ["FRAME","COMPONENT","INSTANCE","TEXT"].
withinNoOnly search inside this node id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

readOnlyHint=true already declares the safety profile, so the description's job is to add depth. It does clarify the search-scope model (file/page/within) which is real behavioral context, but says nothing about result size limits (the schema caps limit at 200) or what is returned for matches.

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?

A single front-loaded sentence naming the primary action, the alternate mode, and the scope options, with no filler.

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?

Seven parameters and no output schema, yet the description never indicates what a match looks like (e.g., node ids that could then feed the 'within' parameter) or that results are bounded. For a search tool with no return-value documentation, that is a meaningful gap.

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 coverage is 86%, so parameter documentation is largely carried by the schema itself. The description reinforces the semantics of text:true and the file/page/within hierarchy but adds no format or syntax detail beyond what the schema already states.

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 gives a specific verb+resource ("Search layers") and states the searchable scope (file, page, or inside a node), plus the text-content variant. It is clear on its own, though it does not explicitly contrast itself with read-oriented siblings like get_design or get_outline.

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?

"or text content with text:true" tells the agent when to flip the primary mode, and "across the file, a page, or inside a node" tells it which scoping parameters select which reach. It stops short of explicit exclusions (e.g., when to prefer get_outline or get_design instead of a search).

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