MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

select_layout

Replace the pane layout of one window. Names and mirrored layouts follow the selected daemon version. Saved layouts accept v1 checksums and v2 JSON; v2 requires tmux 3.8 (including 3.8-rc) or newer. Change tmux state; no client-supplied executable input.

All C++ tools · JSON · Source

Arguments

layout required · string
Built-in name, unambiguous abbreviation or saved tmux layout.
windowId required · string
Stable window ID.

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"layout": {
"description": "Built-in name, unambiguous abbreviation or saved tmux layout.",
"maxLength": 4096,
"type": "string"
},
"windowId": {
"description": "Stable window ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"windowId",
"layout"
],
"type": "object"
}
Output schema
{
"additionalProperties": true,
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Select a tmux layout"
}
Esc

Type to search.