Wait
browser_waitPauses browser automation until specified text appears or disappears, an element reaches a state, a URL or load state is met, or a short timeout elapses, synchronizing actions with dynamic pages.
Instructions
Wait for text to appear/disappear, an element state, a URL, a load state, or a fixed time (≤30s).
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
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| ref | No | Element ref from snapshot (preferred) | |
| url | No | Glob or /regex/ | |
| name | No | ||
| role | No | ||
| text | No | Wait until this text is visible | |
| exact | No | ||
| label | No | ||
| state | No | State for the target (default visible) | |
| expect | No | ExpectSpec postconditions | |
| pageId | No | ||
| testId | No | ||
| timeMs | No | ||
| within | No | Scope to a unique container (ref, role+name, label, testId or CSS selector) | |
| session | No | ||
| timeout | No | ||
| selector | No | CSS (last resort) | |
| snapshot | No | Page state returned after the action: diff (default), full, none | |
| textGone | No | ||
| loadState | No | ||
| placeholder | No |