# window

Source: https://libtmux.org/en/go/latest/mcp/resources/templates/window/

> window: One window, as get_window_info returns it. The id is the window id, percent-encoded: @1 is %401.

**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://windows/{window_id}`

  resource template

  One window, as [get_window_info](https://libtmux.org/en/go/latest/mcp/tools/get_window_info/) returns it. The id is the window id, percent-encoded: @1 is %401.

  * MCP request method

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

  * MIME type

    `application/json`

  ## URI parameters

  * **[`window_id`](https://libtmux.org/en/go/latest/mcp/resources/templates/window/#mcp.resource-template.tmux%3A%2F%2Fwindows%2F%7Bwindow_id%7D.parameter.window_id)**

    * Binding

      URI variable

  ## Result

  Returns resource contents for the requested URI with MIME type `application/json`.

  ## Protocol data

  Use the complete advertised contract for validation and client integration.

  Registration

  ```json
  {
    "description": "One window, as get_window_info returns it. The id is the window id, percent-encoded: @1 is %401.",
    "mimeType": "application/json",
    "name": "window",
    "uriTemplate": "tmux://windows/{window_id}"
  }
  ```

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