veil_wait_for
Poll a JavaScript expression in the page until it becomes truthy, replacing fixed sleep intervals. Returns when the condition holds; errors on timeout.
Instructions
Poll a JS expression in the page until it is truthy, instead of a fixed sleep — e.g. "document.querySelector('.results')". Returns when the condition holds; 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": {
"expression": "<expression>"
},
"name": "veil_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | ms between checks (default 100) | |
| timeout | No | ms before giving up (default 10000) | |
| expression | Yes |