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

Change tmux state; no client-supplied executable input. Applies a named layout, a unique abbreviation for the running tmux version, or a saved layout from get_window_info. Invalid syntax is rejected before window lookup; tmux validates geometry when applying the layout.

All Go tools · JSON · Source

Arguments

layout required · string
a named layout, a unique abbreviation for the running tmux version, or a saved layout from get_window_info
window_id required · string
the window id, such as @1

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"layout": {
"description": "a named layout, a unique abbreviation for the running tmux version, or a saved layout from get_window_info",
"type": "string"
},
"window_id": {
"description": "the window id, such as @1",
"type": "string"
}
},
"required": [
"window_id",
"layout"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"layout": {
"type": "string"
},
"windowId": {
"type": "string"
}
},
"required": [
"windowId",
"layout"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Select a layout"
}
Esc

Type to search.