MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

snapshot_pane

Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Returns pane metadata and bounded terminal content together.

MCP request method
tools/call Send snapshot_pane as the tool name, with the arguments below.
Wraps
tmux.Pane.CaptureThe library call this tool makes: mcp/inspect_tools.go:55.

Arguments

No other arguments are accepted.

Result

Returns object

No other properties are accepted.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Snapshot a pane"

Capability

Toolset
Inspect Request tmux state and terminal output.
Process reach
none
tmux effects
observe

Every Go tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.

Protocol data

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"history": {
"description": "include scrollback as well as the visible screen",
"type": "boolean"
},
"max_lines": {
"description": "maximum lines, keeping the newest",
"type": "integer"
},
"pane_id": {
"description": "the pane id, such as %1",
"type": "string"
},
"styles": {
"description": "return terminal colour and attribute escape sequences raw in the lines; off by default",
"type": "boolean"
}
},
"required": [
"pane_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"dead": {
"type": "boolean"
},
"exitStatus": {
"type": [
"null",
"integer"
]
},
"lines": {
"items": {
"type": "string"
},
"type": [
"array"
]
},
"pane": {
"additionalProperties": false,
"properties": {
"active": {
"type": "boolean"
},
"currentCommand": {
"type": "string"
},
"geometry": {
"additionalProperties": false,
"properties": {
"height": {
"type": "integer"
},
"left": {
"type": "integer"
},
"top": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": [
"left",
"top",
"width",
"height"
],
"type": "object"
},
"id": {
"type": "string"
},
"index": {
"type": "integer"
},
"isCaller": {
"type": [
"null",
"boolean"
]
},
"session": {
"type": "string"
},
"window": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"id",
"session",
"window",
"windowId",
"index",
"currentCommand",
"active",
"geometry",
"isCaller"
],
"type": "object"
},
"truncated": {
"type": "boolean"
},
"truncatedBytes": {
"type": "integer"
},
"truncatedLines": {
"type": "integer"
}
},
"required": [
"lines",
"pane",
"dead",
"truncated"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference