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

select_layout

select_layout( layout: string, window_id: string, )

Applies a named tmux layout, a unique abbreviation or a checksummed saved layout. Names follow the running daemon’s version; mirrored main layouts require tmux 3.5. JSON layouts need tmux 3.8; a server below 3.8 refuses one before select-layout is sent. A version probe may run first. Malformed syntax is refused before window lookup; tmux validates geometry. Change tmux state; no client-supplied executable input.

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

Arguments

  • layout (string)

    A built-in name, unique abbreviation or saved tmux layout. Existing enum-style names are also accepted.

  • window_id (string)

    The window ID, such as @1.

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
"Select a layout"

Capability

Toolset
Manage Change tmux structure or presentation.
Process reach
none
tmux effects
observe change

Every Java 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": {
"layout": {
"description": "A built-in name, unique abbreviation or saved tmux layout. Existing enum-style names are also accepted.",
"type": "string"
},
"window_id": {
"description": "The window ID, such as @1.",
"type": "string"
}
},
"required": [
"window_id",
"layout"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"note": {
"type": "string"
},
"what": {
"type": "string"
}
},
"required": [
"kind",
"id",
"what"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference