zen_sync_barrier
Wait for multiple browser tabs to become ready by polling a JavaScript predicate on each tab. Replaces manual readiness checks with a single barrier that unblocks once all tabs satisfy the condition.
Instructions
Block until a JS predicate returns truthy on every listed tab.
Replaces hand-rolled "wait for everything to be ready" loops.
Args: tab_ids: Tabs to monitor. predicate: JS expression that returns truthy when the tab is ready, e.g. "!!document.querySelector('.results')". timeout: Overall timeout in ms. poll_interval: Per-poll interval in ms.
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": {
"tab_ids": "<tab_ids>",
"predicate": "<predicate>"
},
"name": "zen_sync_barrier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_ids | Yes | ||
| predicate | Yes | ||
| timeout | No | ||
| poll_interval | No |