Skip to main content
Glama

Find elements

find
Read-only

Locate page elements by role, label, placeholder, text, or attributes—including inside iframes—and return up to 20 matching references for use by other browser tools.

Instructions

Find elements by what they are or what they say (e.g. "search bar", "login button", "add to cart", "price"). Matches roles, labels, placeholders, text and attributes, including inside iframes. Returns up to 20 matches with refs usable by other tools.

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": {
      "tabId": "<tabId>",
      "query": "<query>"
    },
    "name": "find"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat to look for, e.g. "search bar" or "Sign in button".
tabIdYesTab ID from tabs_context / tabs_create.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest and does so usefully: it discloses the matching surface (roles, labels, placeholders, text, attributes), that it reaches inside iframes, and that results are capped at 20. It also notes the returned refs are consumable by other tools, which is real chaining context. It stops short of saying what happens on zero matches or whether hidden elements are included.

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?

Three sentences, front-loaded with the purpose and examples, then matching behavior, then return shape. Every clause carries information an agent needs; there is no filler.

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

Completeness4/5

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

With no output schema, the description correctly steps in to describe the return value (up to 20 matches with reusable refs) and the iframe coverage that affects whether the tool will succeed on embedded content. It is close to complete for a two-parameter lookup tool, with only edge-case behavior (empty results, visibility filtering) left unstated.

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%, so both parameters are already documented, establishing a baseline of 3. The description adds modest value by enumerating the attribute types the query is matched against, which helps the agent phrase the query, but it adds nothing about the tabId parameter beyond the schema's own note.

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 elements by what they are or what they say') and reinforces it with four concrete query examples. It implicitly distinguishes itself from text-extraction siblings like get_page_text by focusing on locating elements rather than reading content, though it never names an alternative directly.

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: the examples suggest you call this when you need to locate a UI element before acting on it, but there is no explicit 'use this when... instead of read_page/get_page_text' guidance and no stated exclusions or prerequisites.

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