wait_for
Wait for text to appear or disappear on a web page, with customizable timeout, avoiding repeated polling.
Instructions
Wait for text to appear or disappear on the page.
Avoids polling with repeated get_page_map calls. Specify exactly one of 'text' (wait for appearance) or 'text_gone' (wait for disappearance).
After condition is met, page map is invalidated. Call get_page_map to get updated refs.
Args: text: Wait for this text to appear (case-sensitive substring match, max 500 chars). text_gone: Wait for this text to disappear (e.g., "Loading...", spinner text). timeout: Maximum seconds to wait (default 10, max 30).
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 | ||
| timeout | No | ||
| text_gone | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |