Models¶
Pydantic models for MCP tool inputs and outputs.
-
class libtmux_mcp.models.SessionInfo¶class libtmux_mcp.models.SessionInfo¶
Bases:
BaseModelSerialized tmux session.
-
class libtmux_mcp.models.WindowInfo¶class libtmux_mcp.models.WindowInfo¶
Bases:
BaseModelSerialized tmux window.
-
class libtmux_mcp.models.PaneInfo¶class libtmux_mcp.models.PaneInfo¶
Bases:
BaseModelSerialized tmux pane.
-
class libtmux_mcp.models.PaneContentMatch¶class libtmux_mcp.models.PaneContentMatch¶
Bases:
BaseModelA pane whose captured content matched a search pattern.
-
class libtmux_mcp.models.ServerInfo¶class libtmux_mcp.models.ServerInfo¶
Bases:
BaseModelSerialized tmux server info.
-
class libtmux_mcp.models.OptionResult¶class libtmux_mcp.models.OptionResult¶
Bases:
BaseModelResult of a show_option call.
-
class libtmux_mcp.models.OptionSetResult¶class libtmux_mcp.models.OptionSetResult¶
Bases:
BaseModelResult of a set_option call.
-
class libtmux_mcp.models.EnvironmentResult¶class libtmux_mcp.models.EnvironmentResult¶
Bases:
BaseModelResult of a show_environment call.
-
class libtmux_mcp.models.EnvironmentSetResult¶class libtmux_mcp.models.EnvironmentSetResult¶
Bases:
BaseModelResult of a set_environment call.
-
class libtmux_mcp.models.WaitForTextResult¶class libtmux_mcp.models.WaitForTextResult¶
Bases:
BaseModelResult of waiting for text to appear in a pane.
-
class libtmux_mcp.models.PaneSnapshot¶class libtmux_mcp.models.PaneSnapshot¶
Bases:
BaseModelRich screen capture with metadata: content, cursor, mode, and scroll state.
-
class libtmux_mcp.models.SearchPanesResult¶class libtmux_mcp.models.SearchPanesResult¶
Bases:
BaseModelPaginated result of
search_panes().Wrapping the match list lets us surface bounded-output information that a bare
list[PaneContentMatch]cannot: whether pagination truncated the result set, which panes were skipped, and theoffset/limitthat produced this page. Agents can re-request with a higheroffsetto retrieve subsequent pages.
-
class libtmux_mcp.models.BufferRef¶class libtmux_mcp.models.BufferRef¶
Bases:
BaseModelHandle returned by
load_buffer()for later buffer operations.Agent-created tmux paste buffers are namespaced with a per-call UUID to avoid collisions on the server-global buffer namespace when concurrent agents (or parallel tool calls from a single agent) are staging content. Callers must use the
buffer_namethis model carries on subsequentpaste_buffer/show_buffer/delete_buffercalls.