# tmux_screen

Source: https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/

> Capture an exact pane through tmux_capture with its default byte/line bounds, without cursor tracking. Percent-encode pane IDs. Invalid UTF-8 is an application/octet-stream blob; _meta includes capture interval, truncation and unknown history continuity.

resource template MCPv0.1.0.alpha.3

MCP concept example

A working example of the core library. It can change without notice.

[What concept means](https://libtmux.org/en/meta/support/#concept-and-alpha)

* `tmux://{endpoint}/{generation}/panes/{pane_id}/screen`

  resource template [¶](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen)

  Capture an exact pane through [tmux_capture](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/tools/tmux_capture/) with its default byte/line bounds, without cursor tracking. Percent-encode pane IDs. Invalid UTF-8 is an application/octet-stream blob; \_meta includes capture interval, truncation and unknown history continuity.

  * MCP request method

    `resources/read` Send the resource URI shown above.

  * MIME type

    `text/plain`

  ## URI parameters[#](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen.parameters)

  * **[`endpoint`](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen.parameter.endpoint)**

    * Binding

      URI variable

  * **[`generation`](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen.parameter.generation)**

    * Binding

      URI variable

  * **[`pane_id`](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen.parameter.pane_id)**

    * Binding

      URI variable

  ## Result[#](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen.result)

  Returns resource contents for the requested URI with MIME type `text/plain`.

  ## Protocol data[#](https://libtmux.org/en/ruby/v0.1.0.alpha.3/mcp/resources/templates/tmux_screen/#mcp.resource-template.tmux%3A%2F%2F%7Bendpoint%7D%2F%7Bgeneration%7D%2Fpanes%2F%7Bpane_id%7D%2Fscreen.schemas)

  Use the complete advertised contract for validation and client integration.

  Registration

  ```json
  {
    "description": "Capture an exact pane through tmux_capture with its default byte/line bounds, without cursor tracking. Percent-encode pane IDs. Invalid UTF-8 is an application/octet-stream blob; _meta includes capture interval, truncation and unknown history continuity.",
    "mimeType": "text/plain",
    "name": "tmux_screen",
    "uriTemplate": "tmux://{endpoint}/{generation}/panes/{pane_id}/screen"
  }
  ```

Source revision: [libtmux/libtmux-ruby@d8ce4bbee0ca7748a81929f81f7d8d07f8c51267](https://github.com/libtmux/libtmux-ruby/tree/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267).
