Skip to main content
Glama

Find on the page

browser_find
Read-only

Locate elements anywhere on the page by name or text match, including off-screen ones. Returns up to 15 nearest matches with refs and positions so you can act on them directly instead of scrolling.

Instructions

Find elements anywhere on the page, in view or not, whose name or text contains all the words (any case). Up to 15 matches, nearest first, each a view line with its ref and where it is (in view, or pixels above/below); act on one directly. Use it to reach something off screen that you can name, instead of scrolling through the page to look for it.

Input Schema

NameRequiredDescriptionDefault
queryYesWords to match, e.g. add to cart

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations by disclosing result caps (up to 15 matches), ordering (nearest first), and the concrete return shape (a view line with its ref and whether it is in view or how many pixels above/below), plus that the ref is directly actionable. That is exactly the behavioral context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the capability, then the payoff. Dense but not padded; the second sentence doubles as guidance rather than description, which is still earning its place.

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, the description takes responsibility for explaining what comes back — the view line, ref, and position relative to the viewport — and how to act on it. Nothing needed to call or interpret the tool correctly is missing.

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 100%, so the baseline is 3, but the description adds real matching semantics the schema does not: all words must be present, any case, matched against name or text. It stops short of saying how multiple-word queries are tokenized or whether partial-word matches count.

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 (find), resource (elements anywhere on the page, in view or not), and match semantics (name or text containing all words, case-insensitive). An agent can immediately distinguish this from browser_snapshot (full listing) or browser_scroll (positional movement) without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly contrasts with the alternative: use this to reach something off screen that you can name, instead of scrolling through the page. It gives both the when (item is nameable, off screen) and the when-not (don't scroll to hunt for it).

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