wait_for
Wait until any specified text appears on a page, with an optional timeout. Use this to synchronize browser automation with dynamic content loading.
Instructions
Wait for the specified text to appear on the selected page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pageId": "<pageId>",
"text": "<text>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Non-empty list of texts. Resolves when any value appears on the page. | |
| pageId | Yes | Targets a specific page by ID. | |
| timeout | No | Maximum wait time in milliseconds. If set to 0, the default timeout will be used. |