Skip to main content
Glama

Find elements by text

browser_find
Read-onlyIdempotent

Find elements by their text without reading the whole page: matching lines with refs, visible ones first. text is a case-insensitive substring, or a regular expression with regex: true.

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": {
      "text": "<text>"
    },
    "name": "browser_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to find.
limitNoMaximum matches, default 20.
regexNoTreat text as a JavaScript regular expression.
tab_idNoA result's tab_id.
session_idNoOnly with several sessions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world semantics, so the safety profile needs no restating. The description adds real behavior beyond that: results are returned as matching lines carrying refs, ordered visible-first, and matching is case-insensitive. It omits any note on truncation or what an empty result looks like.

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, zero filler, with the core capability and its cost advantage front-loaded before the matching-mode detail. Every clause carries information an agent can act on.

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 usefully sketches the return shape (matching lines with refs, visible first) and clarifies the two matching modes. It is largely sufficient for a read-only lookup tool, though the interaction between limit and result truncation is left to the schema.

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 100%, so the schema already documents all five parameters and the baseline is 3. The description does add genuine meaning the schema lacks – that text is a case-insensitive substring and that regex: true switches interpretation to a JavaScript regex – but says nothing about limit, tab_id, or session_id scoping beyond their schema text.

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?

"Find elements by their text" states a specific verb and resource, and "without reading the whole page" implicitly contrasts it with the full-page snapshot approach. It never names a sibling tool, so an agent must infer that browser_snapshot is the alternative, but the resource and scope are unambiguous.

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?

The phrase "without reading the whole page" hints at when this is preferable to a full page read, but usage is implied rather than spelled out. There is no explicit when-not guidance, no statement of what happens when text matches nothing, and no pointer to click/snapshot follow-up once refs are obtained.

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.