Skip to main content
Glama

browser_wait

Pause browser automation for a set time, or wait until a specific element or text appears before continuing.

Instructions

等待:指定毫秒数、或等待某元素/某段文本出现

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
msNo等待毫秒数
textNo等待页面出现此文本
selectorNo等待此元素出现

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations were provided, so the description carries the full behavioral burden, and it leaves the critical questions unanswered. For a wait tool, an agent needs to know whether the call blocks until the condition is met, what the default or maximum timeout is, what happens when the element or text never appears (error vs. silent return), and whether all conditions must be satisfied simultaneously. None of this is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

A single front-loaded sentence that states the resource and enumerates the modes with no filler. It is appropriately sized for the tool, though the telegraphic style leaves little room for the operational detail noted elsewhere.

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?

With three optional parameters, no annotations, and no output schema, the description is the only place where blocking/timeout/failure semantics could be stated, and it omits them entirely. An agent knows what the tool waits for but not how it behaves or how to recover when the wait fails.

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%, with each of ms, text, and selector individually documented in the schema, so the baseline of 3 applies. The description merely restates the three parameters at a high level without adding semantics such as units beyond milliseconds, precedence when multiple parameters are supplied, or timeout behavior.

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 gives a concrete verb (wait) and enumerates the three modes: a fixed millisecond delay, waiting for a text string, or waiting for a selector to appear, which matches the three parameters. It is clear what the tool does, but it never distinguishes itself from siblings such as browser_watch, which by name alone suggests overlapping waiting/monitoring behavior.

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: an agent can infer it should call this before interacting with content that has not yet rendered, and the enumeration of text/selector modes hints that those are preferable to a raw millisecond delay. There is no explicit statement of when to use this versus alternatives, no prerequisite context, and no guidance on combining modes.

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