wait_for
wait_forWait until text appears (or text_gone: disappears), a ref/selector shows, or the URL changes. Use one text condition. Better than fixed delays.
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": {
"session_id": "<session_id>",
"secret": "<secret>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | plain delay, max 10000 (prefer a condition) | |
| ref | No | ||
| text | No | visible text to appear | |
| secret | Yes | session secret from create_session | |
| timeout | No | seconds, default 10, max 30 | |
| ref_gone | No | ||
| selector | No | CSS selector visible | |
| snapshot | No | page view after the action (default diff) | |
| text_gone | No | ||
| session_id | Yes | session id from create_session | |
| url_contains | No |