zen_keep_alive
Prevent Zen's Tab Unloader from discarding tabs during multi-tab workflows by pinging tabs at a set interval to reset idle timers.
Instructions
Keep tabs warm so Zen's Tab Unloader won't discard them mid-workflow.
Starts a background pinger in the bridge that fires a no-op JS evaluation at each listed tab on the given interval. Any script access resets Zen's idle timer, so the tabs stay loaded. Replaces any existing keep-alive for the same tabs (use a new interval to change cadence).
Use this at the start of parallel multi-tab work: open your tabs, call zen_keep_alive with their IDs, drive them in parallel via zen_parallel or by passing tab_id to individual commands, then zen_keep_alive_stop when done. The pinger auto-stops if the bridge restarts.
Args: tab_ids: Tab IDs to keep loaded. interval_seconds: How often to ping each tab. Minimum 10s, default 60s. Should be well under Zen's unloader timeout (commonly 20+ minutes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_ids | Yes | ||
| interval_seconds | No |