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_window

create_window( name?: string, session: string, startDirectory?: string, )

Create a detached window; name 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_window as the tool name, with the arguments below.
Wraps
libtmux::Session::new_windowThe library call this tool makes: apps/mcp/src/tool_catalog.cpp:2613.

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 window"

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": {
"name": {
"description": "Optional literal window name.",
"maxLength": 512,
"type": "string"
},
"session": {
"description": "Stable owning session ID or name.",
"maxLength": 512,
"type": "string"
},
"startDirectory": {
"description": "Literal pane start directory.",
"maxLength": 4096,
"type": "string"
}
},
"required": [
"session"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"session_id": {
"pattern": "^\\$[0-9]+$",
"type": "string"
},
"window_id": {
"pattern": "^@[0-9]+$",
"type": "string"
}
},
"required": [
"session_id",
"window_id"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference