Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

wait_for

Pause until specific text, a CSS selector, or a URL substring appears on a page, up to a timeout. Use inside browser batches after clicks or navigations instead of blind sleeps.

Instructions

Wait until specific text, a CSS selector, or a URL substring appears on the page (up to timeoutMs). Ideal inside browser_batch after clicks or navigations instead of blind sleeps.

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

Input Schema

NameRequiredDescriptionDefault
textNoVisible text substring to wait for on the page (case-insensitive).
tabIdNoTarget tab ID (defaults to active managed tab).
selectorNoCSS selector to wait until visible in the DOM.
timeoutMsNoMaximum milliseconds to wait (default 10000, max 30000).
urlContainsNoSubstring to wait for in the tab URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/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. It discloses the timeout bounding but leaves key behavior unexplained: what happens when the timeout elapses (error vs. false return vs. silent success), whether the wait polls or blocks, and how multiple conditions interact (AND vs. OR when both text and selector are supplied). For a synchronization primitive whose failure mode is exactly what agents need to reason about, that is a meaningful gap.

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 sentences with zero filler, front-loaded with the capability and followed immediately by the placement guidance. Every clause carries information an agent needs.

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?

With all five parameters optional, no output schema, and no annotations, the definition is adequate to invoke the tool but leaves open whether conditions combine conjunctively and what a timeout yields. Those two unknowns matter for correct use in a batch sequence. The rest of the surface is covered by the fully described 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 description coverage is 100%, so every parameter including the 10000/30000 ms bounds is already documented. The description restates the conditions and the timeout cap without adding matching semantics (case sensitivity, substring vs. exact) beyond what the schema supplies. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

A precise verb ('wait') with three explicitly enumerated wait conditions (visible text, CSS selector, URL substring) and a bounded duration. It is clearly distinct from generic page-reading siblings, though it does not name a specific alternative tool. It falls short of 5 only because it does not explicitly contrast itself with any named sibling.

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?

The description explicitly states a when-to-use condition: 'inside browser_batch after clicks or navigations instead of blind sleeps.' That tells the agent the typical sequencing context and the anti-pattern it replaces. It does not state when NOT to use it (for example, when a synchronous click already guarantees the state), so it is short of 5.

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