snapshot_pane
-
Snapshot a tmux pane: visible terminal output, cursor, mode, scroll.
Use for terminal-contents inspection — ‘what’s in my pane’, ‘the current shell output’ — not editor panes or browser viewports. Returns everything
capture_paneandget_pane_inforeturn, plus cursor position, copy-mode state, and scroll position — in a single call. Prefer this over separate capture_pane + get_pane_info calls when you need to reason about cursor location or pane mode.The
contentfield is tail-preserved: when the captured pane exceedsmax_lines, the oldest lines are dropped and the result is reported viacontent_truncated/content_truncated_linesfields on the returnedPaneSnapshot. Passmax_lines=Noneto opt out of truncation entirely.- MCP request method
tools/callSendsnapshot_paneas the tool name, with the arguments below.
Arguments#
-
max_lines? =500(integer | null) #Maximum number of content lines to return. Defaults to
CAPTURE_DEFAULT_MAX_LINES. PassNoneto return the full capture untrimmed. -
pane_id? =null(string | null) #Pane ID (e.g. ‘%1’).
-
session_id? =null(string | null) #Session ID (e.g. ‘$1’) for pane resolution.
-
session_name? =null(string | null) #Session name for pane resolution.
-
socket_name? =null(string | null) #tmux socket name.
-
window_id? =null(string | null) #Window ID for pane resolution.
No other arguments are accepted.
Result#
This server does not advertise an output schema for this tool. Its description defines the returned content.
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Protocol data#
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"max_lines": {"anyOf": [{"type": "integer"},{"type": "null"}],"default": 500,"description": "Maximum number of content lines to return. Defaults to\n``CAPTURE_DEFAULT_MAX_LINES``.\nPass ``None`` to return the full capture untrimmed."},"pane_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Pane ID (e.g. '%1')."},"session_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Session ID (e.g. '$1') for pane resolution."},"session_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Session name for pane resolution."},"socket_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "tmux socket name."},"window_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Window ID for pane resolution."}},"type": "object"}