MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

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 preview Open reference