Run a batch of commands in one call
tmux_run_batchRun a sequence of shell commands in a single tmux pane, capture the output, and control error handling with configurable join tokens.
Instructions
Execute multiple shell commands sequentially in one tmux pane and capture the output. Uses "&&" by default (fail fast) or ";" when failFast=false. Automatically captures output (paged) and can clean the prompt before writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | SSH host alias (optional). Uses default host if set. | |
| steps | Yes | List of commands to run sequentially in the same pane, with optional per-step Enter. | |
| target | No | Pane target (pane id or session:window.pane). If omitted, uses default pane if set. | |
| failFast | No | Use && between commands (default true). Set false to use ";" so later commands run even if earlier fail. Ignored if joinWith is set. | |
| joinWith | No | Explicit join token between steps. Use "newline" for heredocs/multi-line writes so terminators are isolated. | |
| cleanPrompt | No | Send Ctrl+C then Ctrl+U before first write to clear any stray input (bash/zsh friendly). Default true. | |
| captureLines | No | Lines to capture after execution (default 200). |