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

libtmux_mcp.tools.pane_tools.swap_pane

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

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

Swap the positions of two panes.

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

Parameters
  • source_pane_id ( str ) – Pane ID of the first pane (e.g. '%1').

  • target_pane_id ( str ) – Pane ID of the second pane (e.g. '%2').

  • socket_name ( str | None ) – tmux socket name.

Returns

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

Esc

Type to search.