MCPResources

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

resource templateMCPlatest

get_session_windows

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

List all windows in a tmux 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
  • 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 array of window objects (MIME: application/json).

Protocol data#

Use the complete advertised contract for validation and client integration.

Registration
{
"_meta": {
"fastmcp": {
"tags": []
}
},
"description": "List all windows in a tmux session.\n\nParameters\n----------\nsession_name : str\n The session name.\nsocket_name : str, optional\n tmux socket name. Defaults to LIBTMUX_SOCKET env var.\n\nReturns\n-------\nstr\n JSON array of window objects (MIME: ``application/json``).",
"mimeType": "application/json",
"name": "get_session_windows",
"title": "Session Windows",
"uriTemplate": "tmux://sessions/{session_name}/windows{?socket_name}"
}
Esc

Type to search.

Reference preview Open reference