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.

swap_pane

Exchange two pane positions without changing their IDs. Change tmux state; no client-supplied executable input.

All C++ tools · JSON · Source

Arguments

sourcePaneId required · string
Stable source pane ID.
targetPaneId required · string
Stable target pane ID.

Schemas

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

Input schema
{
"additionalProperties": false,
"properties": {
"sourcePaneId": {
"description": "Stable source pane ID.",
"maxLength": 512,
"type": "string"
},
"targetPaneId": {
"description": "Stable target pane ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"sourcePaneId",
"targetPaneId"
],
"type": "object"
}
Output schema
{
"additionalProperties": true,
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Swap two tmux panes"
}
Esc

Type to search.