browser_wait_for
Wait for a CSS selector or text to appear on a page, with configurable timeout. Returns success status and wait duration.
Instructions
Wait until a CSS selector appears or text is present on the page (e.g. after a navigation or async render). Returns { ok, waitedMs } — ok=false on timeout. To wait for the network to go quiet instead, use browser_wait_for_idle.
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_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Substring of page text to wait for (if no selector). | |
| selector | No | CSS selector to wait for. | |
| timeoutMs | No | Max time to wait before giving up, in ms (default 10000). |