wait_for
Pause until specific text, a CSS selector, or a URL substring appears on a page, up to a timeout. Use inside browser batches after clicks or navigations instead of blind sleeps.
Instructions
Wait until specific text, a CSS selector, or a URL substring appears on the page (up to timeoutMs). Ideal inside browser_batch after clicks or navigations instead of blind sleeps.
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 |
|---|---|---|---|
| text | No | Visible text substring to wait for on the page (case-insensitive). | |
| tabId | No | Target tab ID (defaults to active managed tab). | |
| selector | No | CSS selector to wait until visible in the DOM. | |
| timeoutMs | No | Maximum milliseconds to wait (default 10000, max 30000). | |
| urlContains | No | Substring to wait for in the tab URL. |