wait_for
Pauses browser automation until a CSS selector appears, a JavaScript condition becomes true, or a timeout elapses.
Instructions
Wait for an element to appear, a condition, or a timeout
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 |
|---|---|---|---|
| tabId | No | Tab ID (optional) | |
| timeout | No | Max wait time in ms (default 10000) | |
| selector | No | CSS selector to wait for (optional) | |
| condition | No | JavaScript expression that returns truthy (optional) |