tmux_capture_pane
Read the visible contents and scrollback of a tmux pane. Select a line range, keep ANSI escapes, join wrapped lines, or trim empty padding.
Instructions
Capture (read) the visible contents and/or scrollback of a pane.
This is the primary way to observe output. start/end select a
scrollback line range (-S/-E): negative or "-" for the start of history,
e.g. start=-100 grabs the last 100+ lines. escapes=True keeps ANSI
color/escape sequences (-e). join=True rejoins wrapped lines (-J).
trim=True (default) drops the empty padding lines tmux emits below the
last line of real content; set trim=False to keep the raw capture.
Returns {"content": }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_pane | No | ||
| start | No | ||
| end | No | ||
| escapes | No | ||
| join | No | ||
| trim | No | ||
| target | No |