Skip to main content
Glama

browser_wait

Wait a set time (durationMs, 100–10000 ms), or until a text is on the page (forText) or gone from it (gone: true): every half second the screen and about 8000px around it are read, words, names and values alike, case and spacing aside.

Instructions

Wait a set time (durationMs, 100–10000 ms), or until a text is on the page (forText) or gone from it (gone: true): every half second the screen and about 8000px around it are read, words, names and values alike, case and spacing aside. Fails when the time runs out (timeoutMs, default 5000, at most 30000).

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
goneNoWith forText: wait until it is no longer on the page.
tabIdNoTab to act on. Defaults to the foreground tab of that window.
forTextNoWait until this text is on the page.
windowIdNoWindow to act on. Defaults to the frontmost window.
timeoutMsNoWith forText: how long to wait for it.
durationMsNoMilliseconds to wait; default 2000. Not with forText.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.9.7
    • changedInput schema / properties / durationMs / description
      Previous value: -"Milliseconds to wait; default 2000."New value: +"Milliseconds to wait; default 2000. Not with forText."
    • addedInput schema / properties / forText
      Added value: +{
      +  "description": "Wait until this text is on the page.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / gone
      Added value: +{
      +  "description": "With forText: wait until it is no longer on the page.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tabId
      Added value: +{
      +  "description": "Tab to act on. Defaults to the foreground tab of that window.",
      +  "type": "string"
      +}
    • addedInput schema / properties / timeoutMs
      Added value: +{
      +  "description": "With forText: how long to wait for it.",
      +  "type": "number"
      +}
    • addedInput schema / properties / windowId
      Added value: +{
      +  "description": "Window to act on. Defaults to the frontmost window.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

Score is being calculated.