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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| poll_interval | No | ||
| tab_id | No |