swap_pane
-
Change tmux state; no client-supplied executable input. Swap two panes’ positions; each keeps its program, its content and its ID.
- MCP request method
tools/callSendswap_paneas the tool name, with the arguments below.- Wraps
LibTmux.Pane.SwapAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/CapabilityTools.cs:880.
Arguments
-
Leave the swapped pane unselected.
-
Keep zoom state.
-
The pane id to swap.
-
The other pane id.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Swap pane"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
changeobserve
Every C# 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": {"detach": {"default": false,"description": "Leave the swapped pane unselected.","type": "boolean"},"keepZoom": {"default": false,"description": "Keep zoom state.","type": "boolean"},"paneId": {"description": "The pane id to swap.","type": "string"},"targetPaneId": {"description": "The other pane id.","type": "string"}},"required": ["paneId","targetPaneId"],"type": "object"}Output schema
{"properties": {"changed": {"type": "string"},"paneId": {"default": null,"type": ["string","null"]},"sessionId": {"default": null,"type": ["string","null"]},"windowId": {"default": null,"type": ["string","null"]}},"required": ["changed"],"type": "object"}