browser_wait
Wait for a browser condition—element, text, URL, network idle, load, or timeout—before continuing automation. Use a URL substring or element reference to pause until the target state appears.
Instructions
Wait for a condition. urlPattern is a URL substring; network_idle observes fewer than 2 requests for 500ms, with an explicit DOM quiet fallback if CDP is unavailable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"until": "<until>"
},
"name": "browser_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container. | |
| text | No | ||
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| until | Yes | ||
| pollMs | No | ||
| visible | No | ||
| selector | No | ||
| timeoutMs | No | ||
| urlPattern | No |