Resources¶
MCP resources are addressable documents the server exposes at
tmux:// URIs. Clients read them via resources/read. All
libtmux-mcp resources are
resource templates
— each URI includes a {?socket_name} query parameter for socket
selection, plus structural path parameters ({session_name},
{pane_id}, …) so a single template covers every session, window,
or pane.
Every resource requests a snapshot of the tmux hierarchy. Its handler accepts
identifiers and socket names rather than command text, but it still sends tmux
queries. A target command-alias or hook may add effects; see Trust model.
LIBTMUX_TOOLSETS filters tools only. Resources remain available when no
toolsets are enabled. They do not carry ToolAnnotations or produce a
tools/call audit event.
Available resources¶
get_sessionsList all tmux sessions.
get_sessionGet details of a specific tmux session.
get_session_windowsList all windows in a tmux session.
get_windowGet details of a specific window in a session.
get_paneGet details of a specific pane.
get_pane_contentCapture and return the content of a pane.
Sessions¶
get_sessions¶
get_session¶
get_session_windows¶
Windows¶
get_window¶
tmux://sessions/{session_name}/windows/{window_index}{?socket_name}tmux://sessions/{session_name}/windows/{window_index}{?socket_name}Get details of a specific window in a session.
- MIME type:
application/json
Parameters
Argument |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
— |
|
string |
yes |
— |
|
string | null |
no |
— |