# tmux_screen

Source: https://libtmux.org/en/ruby/v0.1.0.alpha.2/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 templateMCPv0.1.0.alpha.2

MCP concept example

Maintained as a working example of core library usage and deployment. Example APIs, tools and configuration may change without a compatibility or product support commitment.

[What concept means](https://libtmux.org/en/tmux/guides/concept-examples/)

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

  resource template[¶](https://libtmux.org/en/ruby/v0.1.0.alpha.2/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.2/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.2/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.2/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.2/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.2/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.2/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.2/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@dcc9f8b5a6970144a9e7d80cd5f381d8f6198372](https://github.com/libtmux/libtmux-ruby/tree/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372).
