Wait for Condition
browser_waitWaits for a browser element state, URL substring, or page load state with a bounded timeout, ensuring automation proceeds only when the target condition is met.
Instructions
Wait with a bounded timeout for an element state, URL substring, or page load state.
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 |
|---|---|---|---|
| state | No | Element state to wait for when `selector` is provided (default: visible) | |
| task_id | No | Optional task ID for execution tracking and cancellation | |
| selector | No | Wait for an element matching this selector | |
| loadState | No | Wait for page load state when no selector/urlContains is specified | |
| timeoutMs | No | Bounded wait timeout in milliseconds (500-30000) | |
| session_id | No | Optional target browser session ID (defaults to active default session) | |
| urlContains | No | Wait until current page URL contains this substring |