Skip to main content
Glama

页面查找

browser_find
Idempotent

Find text on a web page, highlight every match, scroll to the first one, and report the match count; use browser_scroll to continue through highlights.

Instructions

Find text on the page (native Ctrl+F behavior): highlights every match, scrolls to the first one and reports the match count. Keep the highlight for the user; call with browser_scroll to move on.

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
tabIdNoTab id (default: active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations mark readOnlyHint=false and openWorldHint=true but say nothing about what actually happens; the description fills that gap by disclosing the visible side effects (highlighting all matches, scrolling the viewport, returning a match count). Advising the agent to leave the highlight in place is genuine operational context. It does not cover the zero-match case, keeping it below a 5.

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, front-loaded with the purpose and behavior, followed by a single actionable instruction about the follow-up call. No filler or redundancy.

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?

There is no output schema, and the description compensates by stating that the tool reports the match count, so the agent knows what it gets back. For a two-parameter tool this is nearly complete; only the no-match behavior is left unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented and the baseline of 3 applies. The description adds semantic framing by equating the 'text' parameter to native Ctrl+F search behavior, clarifying that it matches occurrences rather than exact elements. No parameter detail is missing.

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?

Names a specific verb and resource ('Find text on the page') and immediately anchors it to a familiar behavior ('native Ctrl+F'). The clause 'highlights every match, scrolls to the first one and reports the match count' pins down the exact outcome, which cleanly separates it from siblings like browser_extract or browser_get_selector.

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

Usage Guidelines4/5

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

Explicitly routes the agent to browser_scroll for advancing through matches, which is real when-to-use guidance for the follow-up step. It also gives a usage constraint ('Keep the highlight for the user'), implying the tool should not be used to clear highlights. It stops short of stating when to prefer this over text-extraction siblings, so not a 5.

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