Snapshot paneΒΆ
snapshot_paneΒΆ
snapshot_paneTake a rich snapshot of a tmux pane: content + cursor + mode + scroll state.
- Returns:
Use when you need a complete picture of a pane in a single call β visible
text plus cursor position, whether the pane is in copy mode, scroll offset,
and scrollback history size. Replaces separate capture_pane +
get_pane_info calls when you need to reason about cursor location or
terminal mode.
Avoid when you only need raw text β capture_pane is lighter.
Side effects: None. Readonly.
Example:
{
"tool": "snapshot_pane",
"arguments": {
"pane_id": "%0"
}
}
Response:
{
"pane_id": "%0",
"content": "$ npm test\n\nPASS src/auth.test.ts\nTests: 3 passed\n$",
"cursor_x": 2,
"cursor_y": 4,
"pane_width": 80,
"pane_height": 24,
"pane_in_mode": false,
"pane_mode": null,
"scroll_position": null,
"history_size": 142,
"title": null,
"pane_current_command": "zsh",
"pane_current_path": "/home/user/myproject",
"is_caller": false
}
Parameters
Parameter |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
no |
β |
Pane ID (e.g. β%1β). |
|
|
no |
β |
Session name for pane resolution. |
|
|
no |
β |
Session ID (e.g. β$1β) for pane resolution. |
|
|
no |
β |
Window ID for pane resolution. |
|
|
no |
|
Maximum number of content lines to return. Defaults to :data: |
|
|
no |
β |
tmux socket name. |