wait_for
Waits until specified text appears, an element is visible, or the URL contains a value after an action loads or updates a page, replacing guessed pauses with condition-based timing.
Instructions
Wait until everything given holds: text is on the page, the ref's element is visible, the URL has url_contains.
Gives up after timeout_ms (100 to 30000). Use it after an action that loads or updates the page,
instead of guessing a pause. Each poll checks the site, so a redirect to a blocked one ends the wait.
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 | ||
| text | No | ||
| tab_id | No | ||
| timeout_ms | No | ||
| url_contains | No |