Skip to main content
Glama

find

Search page elements by role, name, or text (case-insensitive) to locate UI targets; returns up to 20 references, optionally in a specified tab or the active tab.

Instructions

Find elements whose role, name or text contains the query (case-insensitive). Returns up to 20 refs.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
tabIdNoTab to act on. Omit for the active tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a key behavioral trait: results are capped at 20 and returned as refs (usable handles for other tools). It omits whether matching is substring vs exact-word, how results are ordered or ranked, and whether it waits for the element to appear.

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 short sentences with zero padding — matching semantics first, return behavior second. Nothing could be removed without losing information.

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?

For a two-parameter, no-annotation, no-output-schema tool this covers the essentials (matching rule, cap, ref output), but it leaves out empty-result behavior and the scope of the search (whole page, iframes, shadow DOM), which matter for an element-locating tool.

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 50%: tabId is documented inline, but query is bare in the schema, and the description supplies its meaning (substring match against role, name, or text, case-insensitive). That is real added value beyond the schema, though it doesn't say whether all three fields are always matched or how precedence works.

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 and resource (find elements) plus the matching rule (role, name, or text, case-insensitive) and a result cap. Clear on its own, though it never distinguishes itself from siblings like read_page or get_page_text that also surface page content.

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?

Usage is only implied: an agent can infer this is the discovery step before click/type/form_input, but the description never says when to prefer it over get_page_text or read_page, nor what to do when the query returns nothing.

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