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_sessions

tmux://sessions{?socket_name}
resource template

List all tmux sessions.

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

URI parameters#

  • 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 session objects (MIME: application/json).

Protocol data#

Use the complete advertised contract for validation and client integration.

Registration
{
"_meta": {
"fastmcp": {
"tags": []
}
},
"description": "List all tmux sessions.\n\nParameters\n----------\nsocket_name : str, optional\n tmux socket name. Defaults to LIBTMUX_SOCKET env var.\n\nReturns\n-------\nstr\n JSON array of session objects (MIME: ``application/json``).",
"mimeType": "application/json",
"name": "get_sessions",
"title": "All Sessions",
"uriTemplate": "tmux://sessions{?socket_name}"
}
Esc

Type to search.

Reference preview Open reference