tmux_capture_pane
Capture the visible text from a tmux pane to retrieve its current output. Use session ID, line ranges, and ANSI options to control captured content.
Instructions
Capture the current pane contents as text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "tmux_capture_pane"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ansi | No | Include escape sequences (tmux -e). | |
| join | No | Join wrapped lines (tmux -J). | |
| end_line | No | End line for capture (-E). Negative values count from bottom. | |
| alternate | No | Capture alternate screen (-a). Default false. | |
| session_id | Yes | ||
| start_line | No | Start line for capture (-S). Negative values count from bottom. | |
| strip_ansi | No | Strip ANSI/VT100 sequences from returned text. |