MCPpre-alphaResources

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

In development Server behavior and tool contracts may change. Tool availability depends on the server configuration.

resource template MCP

get_window

tmux://sessions/{session_name}/windows/{window_index}{?socket_name}
resource template

Get details of a specific window in a session.

MCP request method
resources/read Send the resource URI shown above.
MIME type
application/json

URI parameters

  • session_name

    The session name.

    Binding
    URI variable
  • window_index

    The window index within the session.

    Binding
    URI variable
  • socket_name

    tmux socket name. Defaults to LIBTMUX_SOCKET env var.

    Binding
    Query variable

Result

Returns resource contents for the requested URI with MIME type application/json.

str JSON object with window info and its panes (MIME: application/json).

Protocol data

Use the complete advertised contract for validation and client integration.

Registration
{
"_meta": {
"fastmcp": {
"tags": []
}
},
"description": "Get details of a specific window in a session.\n\nParameters\n----------\nsession_name : str\n The session name.\nwindow_index : str\n The window index within the session.\nsocket_name : str, optional\n tmux socket name. Defaults to LIBTMUX_SOCKET env var.\n\nReturns\n-------\nstr\n JSON object with window info and its panes\n (MIME: ``application/json``).",
"mimeType": "application/json",
"name": "get_window",
"title": "Window Detail",
"uriTemplate": "tmux://sessions/{session_name}/windows/{window_index}{?socket_name}"
}
Esc
Search in

Type to search.

Reference previewOpen reference