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.find_pane_by_position

libtmux_mcp.tools.pane_tools.find_pane_by_position ( corner: PaneCorner, 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, ) → PaneInfo

Find the pane occupying a corner of a tmux window.

Description#

Composes the four pane_at_* predicates so callers can target a layout-relative position (e.g. "the bottom-right pane") in one round-trip instead of listing every pane and computing the geometry. Resolves the window the same way as the other window-scoped tools.

Parameters
Returns

PaneInfo Serialized pane occupying the requested corner.

Raises
  • ExpectedToolError – If no pane satisfies both edge predicates for that corner — in practice only possible for layouts tmux itself produced via custom layout strings; the built-in layouts always have a pane at every corner.

Esc

Type to search.

Reference preview Open reference