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( attach?: boolean, direction?: "before" | "after", session_id: string, start_directory?: string, window_name?: string, )

Start a pane’s configured process; accepts no command payload. Creates a window whose first pane runs the configured process.

MCP request method
tools/call Send create_window as the tool name, with the arguments below.
Wraps
tmux.Session.NewWindowThe library call this tool makes: mcp/dependencies.go:58.

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 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 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": {
"attach": {
"description": "make the new window active",
"type": "boolean"
},
"direction": {
"description": "before or after",
"enum": [
"before",
"after"
],
"type": "string"
},
"session_id": {
"description": "the session id, such as $1",
"type": "string"
},
"start_directory": {
"description": "an absolute literal start directory",
"type": "string"
},
"window_name": {
"description": "a literal window name",
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"paneId": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"windowId",
"paneId"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference