Wait For
wait_forPause automation until a CSS selector appears, a URL substring matches, or network activity goes idle, so steps run only after the page reaches the needed state.
Instructions
Wait — one of: selector / url_contains / network_idle_ms. For text use wait_for_text.
Ex (DOM): wait_for('t0', selector='.submit-btn') → {"ok":true,"why":"selector_found"} Ex (URL): wait_for('t0', url_contains='/dashboard') → {"ok":true,"why":"url_match","url":"..."} Ex (network): wait_for('t0', network_idle_ms=500) → {"ok":true,"why":"network_idle"}
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": {
"tab_id": "<tab_id>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| selector | No | ||
| timeout_s | No | ||
| url_contains | No | ||
| network_idle_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||