veil_wait_for_selector
Polls the page until a CSS selector matches, with an optional requirement for visibility. Returns when the element is found or times out with an error.
Instructions
Poll until a CSS selector matches, then return (the selector-shaped convenience over veil_wait_for). Pass visible:true to also require the element to be laid out and not display:none/visibility:hidden. Errors on 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": "veil_wait_for_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ms before giving up (default 10000) | |
| visible | No | also require the element to be visibly rendered (default false) | |
| selector | Yes |