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

libtmux_mcp.tools.window_tools.select_layout

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.window_tools.select_layout ( layout : str , window_id : str | None = None , window_index : str | None = None , session_name : str | None = None , session_id : str | None = None , socket_name : str | None = None ) → WindowInfo
function [source]
function [source]
libtmux_mcp.tools.window_tools.select_layout

Set the layout of a tmux window.

Choose from: even-horizontal, even-vertical, main-horizontal, main-vertical, or tiled. Rearranges all panes in the window.

Parameters
  • layout ( str ) – Layout name or custom layout string. Built-in layouts: 'even-horizontal', 'even-vertical', 'main-horizontal', 'main-horizontal-mirrored', 'main-vertical', 'main-vertical-mirrored', 'tiled'.

  • window_id ( str | None ) – Window ID (e.g. '@1').

  • window_index ( str | None ) – Window index within the session.

  • session_name ( str | None ) – Session name.

  • session_id ( str | None ) – Session ID.

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

Returns

WindowInfo Serialized window object.

Esc

Type to search.