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

send_keys

send_keys( keys: string, paneId: string, )

Require every configured synchronized pane to be live and outside human-owned mode, then send one validated tmux key name. The library’s literal-command checks do not read a command nested in a string tmux parses itself, such as an if-shell body. Send input to a pane’s program; a shell that receives it runs it with your user’s permissions.

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

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
"Send keys to a tmux pane"

Capability

Toolset
Execute Start or drive pane processes, or store state that can control later execution.
Process reach
pane-input
tmux effects
observe change

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": {
"keys": {
"description": "One tmux key name.",
"maxLength": 256,
"type": "string"
},
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"paneId",
"keys"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"pane_id": {
"pattern": "^%[0-9]+$",
"type": "string"
},
"target_pane_ids": {
"items": {
"pattern": "^%[0-9]+$",
"type": "string"
},
"type": "array"
}
},
"required": [
"pane_id",
"target_pane_ids"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference