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_pane_content

tmux://panes/{pane_id}/content{?socket_name}
resource template

Capture and return the content of a pane.

MCP request method
resources/read Send the resource URI shown above.
MIME type
text/plain

URI parameters#

  • pane_id#

    The pane ID (e.g. ‘%1’).

    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 text/plain.

str Plain text captured pane content (MIME: text/plain).

Protocol data#

Use the complete advertised contract for validation and client integration.

Registration
{
"_meta": {
"fastmcp": {
"tags": []
}
},
"description": "Capture and return the content of a pane.\n\nParameters\n----------\npane_id : str\n The pane ID (e.g. '%1').\nsocket_name : str, optional\n tmux socket name. Defaults to LIBTMUX_SOCKET env var.\n\nReturns\n-------\nstr\n Plain text captured pane content (MIME: ``text/plain``).",
"mimeType": "text/plain",
"name": "get_pane_content",
"title": "Pane Content",
"uriTemplate": "tmux://panes/{pane_id}/content{?socket_name}"
}
Esc

Type to search.

Reference preview Open reference