Skip to main content
Glama

page_wait

Waits for specified text to appear on the page or verifies a referenced element remains present, enabling reliable browser automation synchronization.

Instructions

等某段文字出现(text,最多等 seconds 秒,默认 10);或检查某个编号的元素还在(ref,立即返回)。seconds 最多 60。

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

Input Schema

NameRequiredDescriptionDefault
refNo
textNo
secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose key behavior: default timeout of 10s, a hard cap of 60s, and that the ref path is non-blocking while the text path blocks. It does not say what happens on timeout (error vs falsy result) or what the call returns, which for a wait primitive is the main remaining unknown.

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 dense sentence with the action front-loaded and parameters in parentheticals. Nothing is wasted, though the telegraphic style and mixed use of Chinese and English tokens make it slightly harder to parse than it needs to be.

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 wait/assert-style primitive with no output schema and no annotations, an agent still cannot tell what a timeout yields or how to interpret success. Timing behavior is covered well, but the return contract is missing, which matters more here than for most tools.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does explain all three parameters in context: text is the string awaited, seconds defaults to 10 and caps at 60, ref triggers an immediate existence check. It does not clarify whether ref is an element handle, index, or id, which is the one real gap.

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 two concrete modes with verbs and resources: wait for text to appear, or check that a ref'd element still exists. It is specific enough to distinguish from page_click/page_read siblings, though it never names an alternative. Minor ambiguity remains around which mode wins if both ref and text are passed.

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?

It clearly signals the selection rule between the two modes: text waits, ref returns immediately. There is no explicit when-not guidance or routing to page_read for non-waiting reads, so it stops short of a 5.

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