# session

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

> session: One session, as get_session_info returns it. The id is the session id, percent-encoded: $1 is %241.

**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://sessions/{session_id}`

  resource template

  One session, as [get_session_info](https://libtmux.org/en/go/latest/mcp/tools/get_session_info/) returns it. The id is the session id, percent-encoded: $1 is %241.

  * MCP request method

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

  * MIME type

    `application/json`

  ## URI parameters

  * **[`session_id`](https://libtmux.org/en/go/latest/mcp/resources/templates/session/#mcp.resource-template.tmux%3A%2F%2Fsessions%2F%7Bsession_id%7D.parameter.session_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 session, as get_session_info returns it. The id is the session id, percent-encoded: $1 is %241.",
    "mimeType": "application/json",
    "name": "session",
    "uriTemplate": "tmux://sessions/{session_id}"
  }
  ```

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