Skip to main content
Glama

Find text on the page

browser_find
Read-onlyIdempotent

Search the whole page for specific text and get ranked matches with element details, link hrefs, and optional context. Find exactly what you need on long pages without asking for the full outline.

Instructions

Search text across the WHOLE page (not just the visible part) and get RANKED matches in structuredContent: id, role, name, text (same string, honest label), href (mailto:/tel: pass through intact) and truncated when a value was cut. Optional contextChars allocates a TOTAL text budget across ranked matches: each included match gets context with text, totalChars, observationId and a browser_text continuation if truncated. Context uses the same frozen first-read text as browser_text; contextMatchesOmitted explicitly counts matches without context. The right tool to locate something specific on long pages — do not ask for the full outline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
sessionIdNooptional: the session this call belongs to (from browser_session_open). Omitted uses the shared default session.
contextCharsNoOptional TOTAL context budget across ranked matches, integer 1–12000 characters. Omitted keeps compact matches.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / contextChars
      Added value: +{
      +  "description": "Optional TOTAL context budget across ranked matches, integer 1–12000 characters. Omitted keeps compact matches.",
      +  "maximum": 12000,
      +  "minimum": 1,
      +  "type": "number"
      +}
  2. First observedv0.1.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description adds substantial behavioral context: whole-page search, ranked match output, field semantics like 'honest label' and href pass-through, truncation, the contextChars budget, and contextMatchesOmitted. No behavior is hidden or contradictory.

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?

The description is dense but every sentence earns its place: scope, output shape, optional budget behavior, and usage guidance. It front-loads the core search behavior before detailing the optional contextChars mechanics, with no filler or repetition.

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 fully explains return values: structuredContent fields, ranked matches, truncation, context contents, observationId, and the omission counter. It also covers when to use the tool and how it relates to browser_text, making it self-sufficient for correct invocation.

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?

The description significantly expands on contextChars, explaining that it allocates a total text budget, provides per-match context fields, and includes a continuation mechanism when truncated. The text parameter is self-explanatory and sessionId is already documented in the schema, so the 67% schema coverage is sufficiently compensated.

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?

The description opens with a specific verb ('Search') and resource ('text across the WHOLE page'), then specifies ranked matches with structured fields. It distinguishes itself from page-reading siblings by emphasizing the whole-page scope and explicitly warning against using it for a full outline.

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?

It explicitly frames the tool as 'the right tool to locate something specific on long pages' and adds the when-not guidance 'do not ask for the full outline.' It also references browser_text as the related sibling for the underlying frozen text, giving the agent enough context to choose correctly.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zumerlab/snapsurf'

If you have feedback or need assistance with the MCP directory API, please join our Discord server