wait_for
Polls for a CSS selector to appear on a page, using a 100ms interval and configurable timeout, so browser automation can wait for elements before acting.
Instructions
Poll for a CSS selector to appear on the page (100ms interval, default 10s timeout)
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": {
"selector": "<selector>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| timeout | No | Max wait in ms, default 10000 | |
| selector | Yes |