swap_pane
-
Change tmux state; no client-supplied executable input. Swaps the positions of two panes.
- MCP request method
tools/callSendswap_paneas the tool name, with the arguments below.- Wraps
tmux.Pane.SwapThe library call this tool makes:mcp/layout_tools.go:221.
Arguments
-
the other pane id, such as %2
-
one pane id, such as %1
No other arguments are accepted.
Result
Returns object
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Swap panes"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
observechange
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": {"other_pane_id": {"description": "the other pane id, such as %2","type": "string"},"pane_id": {"description": "one pane id, such as %1","type": "string"}},"required": ["pane_id","other_pane_id"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"paneId": {"type": "string"},"withPaneId": {"type": "string"}},"required": ["paneId","withPaneId"],"type": "object"}