Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_wait

Pause agent execution until an element becomes visible, hidden, or a URL condition matches, or until a page stabilizes. Returns a timeout error when the condition isn't met.

Instructions

Wait for target visibility (gone:true = hidden), URL (substring/glob), ms, or until stable. Fails TIMEOUT.

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": {
      "tabId": "<tabId>"
    },
    "name": "browser_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
msNo
urlNo
goneNo
tabIdYes
untilNoWait until the page stops changing
targetNoTarget.
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It does disclose a real behavioral trait beyond the schema — 'Fails TIMEOUT' — which tells the agent the failure mode, but it omits whether the call blocks, what the default timeout is, and what a successful return 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.

Conciseness3/5

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

The single sentence is front-loaded and wastes no words, but it is telegraphic to the point of under-specification ('Fails TIMEOUT' is never unpacked). Brevity here comes at the cost of clarity rather than from efficiency.

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

Completeness2/5

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

For a seven-parameter tool with no annotations and no output schema, the description is too thin: it never explains the required tabId, the timeout semantics, default behavior, or the return value. An agent could call it, but only by reverse-engineering 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 low at 29%, and the description compensates for part of that by clarifying 'gone:true = hidden' and that url matches by 'substring/glob', neither of which the schema states. It leaves the required tabId and the timeout parameter (with its 50000ms cap) entirely unexplained, so the compensation is only partial.

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?

The description names a specific verb ('Wait for') and enumerates the four wait conditions (target visibility, URL, ms, stable), so an agent knows exactly what the tool does. It does not, however, contrast itself with any sibling such as browser_snapshot or browser_scroll, so differentiation is left to inference.

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

Usage Guidelines2/5

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

It lists what can be waited on but gives no guidance on when this tool should be chosen over alternatives, nor any exclusions or prerequisites. An agent must guess that this is the right tool after a navigation or click rather than, say, polling with browser_snapshot.

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