Skip to main content
Glama
Playwright MCP Server

Playwright MCP Server

Official
by microsoft

browser_wait_for

Read-only

Waits for target text to appear or disappear, or pauses for a set duration, helping browser automation synchronize with dynamic page changes.

Instructions

Wait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, waits for the first one to happen

Input Schema

NameRequiredDescriptionDefault
textNoThe text to wait for
timeNoThe time to wait in seconds, at most 30. When combined with text or textGone, serves as a timeout for them instead of the default action timeout
textGoneNoThe text to wait for to disappear

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.0.84
    • changedInput schema / properties / time / description
      Previous value: -"The time to wait in seconds, at most 30"New value: +"The time to wait in seconds, at most 30. When combined with text or textGone, serves as a timeout for them instead of the default action timeout"
  2. Changed1 schema field changedv0.0.83
    • changedInput schema / properties / time / description
      Previous value: -"The time to wait in seconds"New value: +"The time to wait in seconds, at most 30"
  3. Changed1 schema field changedv0.0.72
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds real value with the precedence rule for text versus textGone, but says nothing about the default timeout, the 30-second ceiling, or whether a wait that times out throws an error or returns a status.

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 tight sentences with no filler: the primary behavior comes first and the subtle combined-argument rule is expanded immediately after. Nothing is wasted.

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

Completeness4/5

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

Since all three parameters are optional and fully documented in the schema, and annotations carry the safety profile, the missing pieces are minor details such as default behavior with zero arguments and timeout semantics. That is short of complete but not a real obstacle.

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 100% and each parameter is documented, so the baseline would be 3; the description goes beyond it by explaining the cross-parameter interaction (text and textGone racing, and how time becomes a timeout rather than a delay).

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 and resource: wait for text to appear, text to disappear, or elapsed time. That is clearly distinguishable from siblings like browser_click or browser_snapshot, though it never explicitly says the wait happens on the current page.

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?

It implies the use case (waiting for dynamic content or a delay) and explains how the arguments combine, but it never says when to prefer this over, say, browser_find or browser_snapshot polling, nor does it state what happens if no argument is supplied.

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