Wait For
wait_forPause automation until text, an element state, a URL pattern, or a JS predicate holds, checking current state first so completed conditions return immediately.
Instructions
Wait for text to appear or disappear, an element to reach a state, a URL
to match, or a JS predicate to hold. EVERY condition is checked against the
current state first and returns immediately when it already holds, so a
wait issued after the thing already happened costs nothing instead of
timing out (a URL wait could otherwise expire on a navigation that had
already finished). A url value without wildcards matches as a substring;
use * and ? for globbing. Real timeouts, and a failure that says what was
awaited and what was observed instead.
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": {
"page": "<page>",
"condition": "<condition>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| value | No | ||
| location | No | ||
| condition | Yes | ||
| timeout_ms | No |