tmux_capture_pane
Capture visible content or scrollback text from tmux terminal panes for debugging, monitoring, or logging purposes. Specify session name and optional line count to retrieve terminal output.
Instructions
Capture the visible content of a tmux pane. Returns the text currently displayed in the pane.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_name | Yes | Name of the tmux session | |
| pane_index | No | Pane index (default: 0 for main pane) | |
| lines | No | Number of lines to capture from scrollback (default: captures visible area, use -1 for entire scrollback) |
Input Schema (JSON Schema)
{
"properties": {
"lines": {
"description": "Number of lines to capture from scrollback (default: captures visible area, use -1 for entire scrollback)",
"type": "number"
},
"pane_index": {
"description": "Pane index (default: 0 for main pane)",
"type": "string"
},
"session_name": {
"description": "Name of the tmux session",
"type": "string"
}
},
"required": [
"session_name"
],
"type": "object"
}