capture_pane
Retrieve the visible output from any tmux pane using session:window.pane format. Use after listing sessions, windows, and panes to specify the target. Note: pane output may contain sensitive data; confirm safety before use.
Instructions
Capture current output of a tmux pane. Target format: 'session:window.pane' (e.g. 'work:0.0'). Use list_sessions → list_windows → list_panes to build the target. WARNING: pane output may contain environment variables, API keys, tokens, and credentials — do not call if the pane may contain sensitive data unless the user has confirmed it is safe. AFTER displaying the output, always ask the user what to do next with these options: Refresh (call capture_pane again), Send command (ask what command then call send_keys), Switch pane (restart from list_sessions), Done (stop). Loop until the user picks Done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Lines of scrollback to include (default: 150) | |
| target | Yes | Pane target: 'session:window.pane' |