browser_wait_for
Wait until a visible element shows specified text or matches a locator, or until matching elements disappear, so you can continue after delayed UI changes without fixed pauses.
Instructions
Waits until a visible element shows the text (case-insensitive substring) or matches the locator (see browser_find), in every frame; with gone=True, until none is left (a spinner, "Loading...", a closed dialog). Use it after an action whose result appears later: no fixed pause needed. timeout_ms: at most 115000. Response: count of matching elements and elapsed_ms; an error if the timeout is reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gone | No | ||
| text | No | ||
| tab_id | Yes | Your tab's id (from browser_new_tab, or a tab adopted with browser_adopt_tab). | |
| locator | No | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes | ||
| warning | No | Emergency stop hotkey not held, or similar notice | |
| untrusted_note | No | Page text that looks like instructions aimed at an AI |