Fan-out send and capture
tmux_multi_runSend the same command to multiple tmux panes or hosts and capture results. Supports one-shot capture, tailing, and regex pattern matching for cross-target comparison.
Instructions
Send the same keys to multiple targets (across hosts) and optionally capture results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Keys/command to send. | |
| mode | No | send_capture (default) captures once, tail polls, pattern checks for regex. | |
| enter | No | Append Enter. | |
| capture | No | Capture after sending. | |
| delayMs | No | Default delay before capture in ms (per-target override available). | |
| pattern | No | Regex pattern when mode=pattern. | |
| targets | Yes | List of targets to fan-out to. | |
| captureLines | No | Default lines to capture (per-target override available). | |
| patternFlags | No | Regex flags (e.g., i) | |
| tailIntervalMs | No | Tail interval ms (mode=tail). | |
| tailIterations | No | Tail iterations (mode=tail). |