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

call_read_tools_batch

call_read_tools_batch( onError?: "continue" | "stop", operations: Array<object | object | object | object | object | object | object | object | object | object | object | object | object | object | object | object>, )

Run up to sixteen declared inspect operations serially under this one call; inner operations receive no separate approval. Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted.

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

Arguments

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Call read tools as a batch"

Capability

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

Every C++ 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": {
"onError": {
"description": "Stop after the first failed operation or continue.",
"enum": [
"continue",
"stop"
],
"type": "string"
},
"operations": {
"description": "One to sixteen typed inspect-tool operations.",
"items": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"history": {
"description": "Capture retained history as well as the visible pane.",
"type": "boolean"
},
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"paneId"
],
"type": "object"
},
"tool": {
"const": "capture_pane",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"cursor": {
"description": "Previously returned byte cursor.",
"minimum": 0,
"type": "integer"
},
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"paneId"
],
"type": "object"
},
"tool": {
"const": "capture_since",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"column": {
"description": "Zero-based terminal column.",
"minimum": 0,
"type": "integer"
},
"row": {
"description": "Zero-based terminal row.",
"minimum": 0,
"type": "integer"
},
"windowId": {
"description": "Optional stable window ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"row",
"column"
],
"type": "object"
},
"tool": {
"const": "find_pane_by_position",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"paneId"
],
"type": "object"
},
"tool": {
"const": "get_pane_info",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {},
"required": [],
"type": "object"
},
"tool": {
"const": "get_server_info",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"session": {
"description": "Stable session ID or name.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"session"
],
"type": "object"
},
"tool": {
"const": "get_session_info",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"names": {
"description": "One to thirty-two validated tmux variable names.",
"items": {
"maxLength": 128,
"type": "string"
},
"maxItems": 32,
"minItems": 1,
"type": "array"
},
"paneId": {
"description": "Optional pane context.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"names"
],
"type": "object"
},
"tool": {
"const": "get_tmux_variables",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"windowId": {
"description": "Stable window ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"windowId"
],
"type": "object"
},
"tool": {
"const": "get_window_info",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {},
"required": [],
"type": "object"
},
"tool": {
"const": "list_panes",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {},
"required": [],
"type": "object"
},
"tool": {
"const": "list_sessions",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"session": {
"description": "Stable session ID or name.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"session"
],
"type": "object"
},
"tool": {
"const": "list_windows",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"pattern": {
"description": "Bounded regular expression.",
"maxLength": 256,
"type": "string"
}
},
"required": [
"pattern"
],
"type": "object"
},
"tool": {
"const": "search_panes",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"name": {
"description": "Optional exact environment name.",
"maxLength": 256,
"type": "string"
},
"session": {
"description": "Optional session target.",
"maxLength": 512,
"type": "string"
}
},
"required": [],
"type": "object"
},
"tool": {
"const": "show_environment",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"name": {
"description": "Optional exact hook name.",
"maxLength": 256,
"type": "string"
},
"target": {
"description": "Optional tmux target.",
"maxLength": 512,
"type": "string"
}
},
"required": [],
"type": "object"
},
"tool": {
"const": "show_hooks",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"name": {
"description": "Exact option name.",
"maxLength": 256,
"type": "string"
},
"target": {
"description": "Optional session, window, or pane target.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"tool": {
"const": "show_option",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"arguments": {
"additionalProperties": false,
"properties": {
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"paneId"
],
"type": "object"
},
"tool": {
"const": "snapshot_pane",
"type": "string"
}
},
"required": [
"tool"
],
"type": "object"
}
]
},
"maxItems": 16,
"minItems": 1,
"type": "array"
}
},
"required": [
"operations"
],
"type": "object"
}
Output schema
{
"additionalProperties": true,
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference