MCPpre-alphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

libtmux_mcp.tools.pane_tools.swap_pane

libtmux_mcp.tools.pane_tools.swap_pane ( source_pane_id: str, target_pane_id: str, socket_name: str | None = None, ) → PaneInfo

Swap the positions of two panes.

Description#

Exchanges the visual positions of two panes. Both panes must exist. Use this to rearrange pane layout without changing content.

Parameters
Returns

PaneInfo The source pane after swap (now in target's position).

Esc

Type to search.

Reference previewOpen reference