Skip to main content
Glama
browser-stream

browser-stream

by sgreen7979

browser_wait_for

Wait for specified text or a referenced element to become visible in a browser session, polling every 500ms until found or the timeout is reached.

Instructions

Wait for text to appear or a ref to become visible. Polls every 500ms.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_wait_for"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoRef to wait for (e.g. @e5)
textNoText to wait for (case-insensitive substring match)
timeoutNoTimeout in ms (default 10000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the 500ms polling loop and the two wait conditions, but it omits the single most important behavior for a wait tool: what happens on timeout (error, false return, or silent continuation) and whether a failed wait aborts the session.

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 before the polling detail; every clause carries information and nothing is padded.

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

Completeness3/5

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

For a three-optional-parameter wait tool with no output schema and no annotations, the description is adequate on mechanism but silent on outcome. An agent cannot tell from the definition whether a timeout surfaces as an error or a return value, which matters because there is no output schema to consult.

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 ref format, case-insensitive substring matching, and the 10000ms default timeout are already fully documented in the schema. The description adds no meaning beyond restating the two wait targets, which is the expected baseline when the schema does the work.

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?

States a specific verb ('wait') and two concrete conditions (text appears, ref becomes visible), which clearly separates it from the action-oriented siblings like browser_click and browser_fill. It does not, however, explicitly name an alternative or contrast its scope with tools that already return page state such as browser_snapshot.

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 tool waits for asynchronous conditions, so an agent can infer it belongs after navigation or a click that triggers rendering. There is no explicit when-to-use or when-not guidance, no mention of prerequisites (e.g. that a ref must come from a prior snapshot), and no stated alternative for waiting strategies.

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