read_tmux_pane
Read the content of a tmux pane on demand, allowing AI agents to assist with context-aware tasks during interactive terminal sessions.
Instructions
Reads the content of a tmux pane. This enables AI agents to see what is currently displayed in the terminal, providing context-aware assistance during interactive sessions (e.g., git rebase, vim, conflict resolution). The agent only reads the pane when explicitly invoked - there is no background monitoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional tmux target pane in format "session:window.pane" (e.g., "work:1.0"). If not specified, uses the current pane. You can get available targets using list_tmux_sessions. | |
| end_line | No | Optional ending line number. Use -1 for the last line. If not specified, reads to the end of the visible area. | |
| start_line | No | Optional starting line number. Use negative numbers for scrollback history (e.g., -100 for last 100 lines). If not specified, reads only the visible area. | |
| include_trailing_spaces | No | Whether to preserve trailing spaces on each line. Default is false. |