zen_parallel
Execute multiple command sequences concurrently, each sequence running serially in a separate tab, and collect results per sequence.
Instructions
Run command sequences in parallel — typically one sequence per tab.
Each inner list is a sequence that runs serially; all sequences run concurrently. Commands that target a specific tab (navigate, switchTab, or any tab-aware action) MUST include "tabId" inside the parallel batch to avoid race conditions over the active tab.
Returns a list of result lists, one per input sequence.
Args: sequences: List of command sequences. Each command is a dict with "action" and parameters — same shape as zen_batch commands. Example for driving two tabs at once: [ [{"action": "navigate", "url": "...", "tabId": 12}, {"action": "waitForElement", "selector": "h1", "tabId": 12}, {"action": "pageText", "tabId": 12}], [{"action": "navigate", "url": "...", "tabId": 13}, {"action": "waitForElement", "selector": "h1", "tabId": 13}, {"action": "pageText", "tabId": 13}] ]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequences | Yes |