zen_wait_for_result
Poll a JavaScript expression repeatedly until a non-empty result is returned, with configurable timeout and interval.
Instructions
Poll a JavaScript expression until it returns a non-empty result.
Args: code: JavaScript expression to evaluate repeatedly timeout: Maximum time to wait in milliseconds poll_interval: How often to check in milliseconds tab_id: Optional tab to target. Defaults to active tab.
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": {
"code": "<code>"
},
"name": "zen_wait_for_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| poll_interval | No | ||
| tab_id | No |