Skip to main content
Glama

Wait

browser_wait

Wait for a fixed duration or until a specified selector appears before continuing browser automation, keeping scripted actions synchronized with page updates.

Instructions

等待一段时间或等待某个选择器出现。默认 ego 引擎。

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
engineNo浏览器引擎:ego(默认,真实浏览器 + 登录态)/ edge(Playwright/Edge,需另装 playwright)ego
selectorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing: no timeout default or maximum, no statement of what happens if the selector never appears (error vs. silent return), and no indication of whether the call blocks. The one behavioral claim, 'default ego engine', merely restates the schema's default value.

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?

Two short sentences with no filler and the core action front-loaded, which is good. However, the brevity crosses into under-specification rather than efficient concision, and the mixed-language, single-line phrasing gives no structural separation between the two wait modes.

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 parameterless-mandatory wait tool with no annotations and no output schema, the agent needs to know timeout limits, failure behavior, and mode interaction. None of these are present, leaving significant gaps for what is a common source of agent retry errors.

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 only 33% (only the engine enum is documented), so the description needs to compensate. It does map the two undocumented parameters conceptually to the two wait modes, but it does not clarify whether ms and selector are mutually exclusive, what happens when both or neither of the zero-required params are supplied, or units/format for selector.

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 states a specific verb (wait) with two concrete modes: a duration or a selector appearing. That is enough to distinguish it from sibling tools like browser_click or browser_snapshot, though it does not name any sibling explicitly.

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 says 'wait for a time or wait for a selector' but gives no guidance on which mode to choose, whether the two can be combined, or when an agent should reach for this tool instead of retrying a click or taking a snapshot. The only contextual hint is the trailing note about the default ego engine.

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