browser_waitFor
Wait for one page condition—text, element visibility, selector, URL match, or network idle—before continuing instead of fixed sleeps. Timeout errors report the last seen state.
Instructions
Wait for exactly one condition, then return: text to appear (or disappear), a ref to become visible (or vanish), a selector, a URL (with * wildcards), or the network to go idle. Use this instead of sleep-and-hope. On timeout the error says what was last seen and suggests a fresh snapshot.
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_waitFor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Wait until this ref is visible | |
| url | No | Wait until location matches, * is a wildcard | |
| text | No | Wait until this text is on the page | |
| until | No | Invert the condition (default visible) | |
| timeout | No | Milliseconds (default 10000) | |
| selector | No | Wait until this selector matches | |
| networkIdle | No | Also require no requests in flight |