wait_for
Pauses browser automation until a selector reaches a specified state, text appears or disappears, a URL substring matches, the network is idle, or a timeout elapses.
Instructions
Wait for selector state (visible/attached/hidden), text present or gone, url substring, network idle, or time ms.
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": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ref from snapshot, e.g. e3 | |
| tab | No | tab id, defaults to current | |
| url | No | ||
| idle | No | ||
| text | No | ||
| time | No | ||
| state | No | ||
| timeout | No | ||
| selector | No | CSS selector | |
| textGone | No | ||
| request_timeout | No | Outer page request deadline in milliseconds; defaults to at least 30000 |