MCPpre-alphaTools

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tool MCPstable

show_buffer

tool [source]

Read back the contents of an MCP-owned buffer.

Output is tail-preserved: when the buffer exceeds max_lines the oldest lines are dropped and content_truncated is set so the caller can tell truncation happened and opt in to a full read via max_lines=None. This mirrors capture_pane — one consistent bounded-output contract across read-heavy tools so a pathological load_buffer staging cannot blow the agent’s context window on a single show_buffer call.

MCP request method
tools/call Send show_buffer as the tool name, with the arguments below.

Arguments#

No other arguments are accepted.

Result#

This server does not advertise an output schema for this tool. Its description defines the returned content.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"buffer_name": {
"description": "Must match the full MCP-namespaced form.",
"type": "string"
},
"max_lines": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 500,
"description": "Maximum number of lines to return. Defaults to\n:data:`SHOW_BUFFER_DEFAULT_MAX_LINES`. Pass ``None`` for no\ntruncation."
},
"socket_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "tmux socket name."
}
},
"required": [
"buffer_name"
],
"type": "object"
}
Esc

Type to search.

Reference preview Open reference