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

create_session

Create a detached session; names and path data are literalized before tmux expansion. Start a pane’s configured process; accepts no command payload.

MCP request method
tools/call Send create_session as the tool name, with the arguments below.
Wraps
libtmux::Server::new_sessionThe library call this tool makes: apps/mcp/src/tool_catalog.cpp:2578.

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
"Create a tmux session"

Capability

Toolset
Execute Start or drive pane processes, or store state that can control later execution.
Process reach
configured-process
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": {
"height": {
"description": "Optional detached height.",
"maximum": 100000,
"minimum": 1,
"type": "integer"
},
"name": {
"description": "Optional literal unique session name.",
"maxLength": 512,
"type": "string"
},
"startDirectory": {
"description": "Literal pane start directory.",
"maxLength": 4096,
"type": "string"
},
"width": {
"description": "Optional detached width.",
"maximum": 100000,
"minimum": 1,
"type": "integer"
},
"windowName": {
"description": "Optional literal first window name.",
"maxLength": 512,
"type": "string"
}
},
"required": [],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"session_id": {
"pattern": "^\\$[0-9]+$",
"type": "string"
}
},
"required": [
"name",
"session_id"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference