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 a bounded wait for new pane output.
Deliberately free of inference. Every field is something the tool observed directly — a match, a clock reading, a tmux flag. There is no “likely cause”, no “next action”, no quiescence verdict: a confidently-wrong diagnosis costs the agent more than an honest “nothing appeared, here is what the pane shows”.
Field count is load-bearing.
outputSchemais re-sent on every request of every session, so a field that no agent branches on is a permanent tax.outcomecarries what three separate booleans carried before it.
-
class libtmux_mcp.models.CaptureSinceResult¶class libtmux_mcp.models.CaptureSinceResult¶
Bases:
BaseModelIncremental pane capture result with an opaque resume cursor.
-
class libtmux_mcp.models.RunCommandResult¶class libtmux_mcp.models.RunCommandResult¶
Bases:
BaseModelResult of running a shell command in a pane.
-
class libtmux_mcp.models.SendKeysBatchResult¶class libtmux_mcp.models.SendKeysBatchResult¶
Bases:
BaseModelStructured result for a batch of raw-input send operations.
-
class libtmux_mcp.models.ToolCallOperation¶class libtmux_mcp.models.ToolCallOperation¶
Bases:
BaseModelOne nested MCP tool call for a batch wrapper.
-
class libtmux_mcp.models.ToolCallOperationResult¶class libtmux_mcp.models.ToolCallOperationResult¶
Bases:
BaseModelPer-operation result from a generic MCP tool batch.
-
class libtmux_mcp.models.ToolCallBatchResult¶class libtmux_mcp.models.ToolCallBatchResult¶
Bases:
BaseModelStructured result for a serial batch of MCP tool calls.
-
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
listofPaneContentMatchrows 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.HookListResult¶class libtmux_mcp.models.HookListResult¶
Bases:
BaseModelStructured result for hook introspection.
Returned by
show_hooks()andshow_hook(). Flat list ofHookEntryinstances so MCP clients can iterate without caring whether the underlying tmux hook is scalar or array-shaped.
-
class libtmux_mcp.models.BufferRef¶class libtmux_mcp.models.BufferRef¶
Bases:
BaseModelHandle returned by
load_buffer().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(), anddelete_buffer()calls.
-
class libtmux_mcp.models.BufferContent¶class libtmux_mcp.models.BufferContent¶
Bases:
BaseModelStructured result of
show_buffer().