Skip to main content
Glama

Find nodes

find_nodes
Read-only

Find elements by their text, classes, tag, attribute or layer name, and get their ids without reading the whole HTML. Returns one compact line per match (id, tag, a few classes, text, path). With frameId, also the elements that component instances draw there, as instanceId>elementId (the render tools' nodeId).

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": {
      "fileId": "<fileId>"
    },
    "name": "find_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
attrNoAttribute name, or name=value: "data-lucide=search", "data-each".
nameNoLayer name (data-name, data-component, data-use) or template name (data-each="rows").
textNoText contained (case-insensitive).
classNoClasses the element has, all of them: "rounded-full bg-blue-600".
limitNo
fileIdYes
frameIdNoSearch in this frame (or element) only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description goes further by specifying the return format (one compact line per match with id, tag, classes, text, path) and the non-obvious frameId behavior of also surfacing instanceId>elementId pairs. What it omits is what happens when results exceed the limit (silent truncation vs. total count), which matters for a search tool.

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, both front-loaded: the primary search capability and benefit come first, then the frameId edge case. No restatement of the title, no filler, and the parenthetical clarifications are dense with information rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations covering return values, the description carries the burden of describing output and does so explicitly. It covers the searchable dimensions, the frameId special case, and the consumer of the ids; only filter-combination semantics remain unstated, which is a minor gap for an otherwise complete definition.

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?

Schema coverage is 63%, and the description compensates by naming the semantic role of five of the eight parameters (text, class, tag, attr, name) and explaining the frameId search scope, including the instance-rendered elements case. limit and fileId are left entirely to the schema, and it never says whether multiple criteria combine as AND or OR, which is the key semantic question for a multi-filter search.

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?

States a specific verb and resource ('Find elements') plus the exact criteria it searches on (text, classes, tag, attribute, layer name) and the payoff ('get their ids without reading the whole HTML'). The closing contrast with reading full HTML plus the render-tool nodeId mapping makes it distinguishable from get_html, get_screenshot, and inspect_reference without opening another schema.

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 phrase 'without reading the whole HTML' implicitly routes the agent here instead of get_html, and the mention of frameId scoping clarifies the constrained-search case. There is no explicit exclusion or named alternative, so it falls short of full when/when-not guidance, but the usage context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.