read_pane
Retrieve a terminal pane's output as plain text, optionally trimming to the last N lines or selecting visible, recent, or detection sources.
Instructions
Read a pane's terminal output as plain text.
pane: pane id like `w17:p1` (see list_panes / list_agents).
lines: keep only the last N lines of the snapshot.
source: visible (what the user sees), recent (default scrollback tail),
recent-unwrapped (recent without soft wrapping), detection (bottom buffer
used for agent detection).
Note: herdr may return an empty string for source=recent with lines set on
panes with short scrollback; if that happens, retry without lines or with
source="visible".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pane | Yes | ||
| lines | No | ||
| source | No | recent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |