libtmux_mcp.tools.buffer_tools.show_buffer
- libtmux_mcp.tools.buffer_tools.show_buffer ( buffer_name: str, max_lines: int | None = SHOW_BUFFER_DEFAULT_MAX_LINES, socket_name: str | None = None, ) Buffer
Content -
Read back the contents of an MCP-owned buffer.
Description#
Output is tail-preserved: when the buffer exceeds
max_linesthe oldest lines are dropped andcontent_truncatedis set so the caller can tell truncation happened and opt in to a full read viamax_lines=None. This mirrorscapture_pane— one consistent bounded-output contract across read-heavy tools so a pathologicalload_bufferstaging cannot blow the agent's context window on a singleshow_buffercall.- Parameters
-
-
buffer_name(str) # – Must match the full MCP-namespaced form. -
max_lines(int | None) # – Maximum number of lines to return. Defaults toSHOW_BUFFER_DEFAULT_MAX_LINES. PassNonefor no truncation. -
socket_name(str | None) # – tmux socket name.
-
- Returns
-
BufferContent Structured result with
buffer_name,content, and the truncation fields.