# get_session_info

Source: https://libtmux.org/en/csharp/latest/mcp/tools/get_session_info/

> Inspect tmux metadata; accepts no client-supplied executable input. Read one session's name, ID, window count and whether a client is attached, without listing every session. Give the session, or a window ID to read the session that holds it.

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

Inspect tmux metadata; accepts no client-supplied executable input. Read one session’s name, ID, window count and whether a client is attached, without listing every session. Give the session, or a window ID to read the session that holds it.

[All C# tools](https://libtmux.org/en/csharp/latest/mcp/tools/) · [JSON](https://libtmux.org/en/csharp/latest/mcp/tools/get_session_info.json) · [Source](https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Mcp/Policy/CapabilityModel.cs#L573)

## Arguments

* `session` required · string

  A session id or name.

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "session": {
      "description": "A session id or name.",
      "type": "string"
    }
  },
  "required": [
    "session"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "properties": {
    "attached": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "windowCount": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "sessionId",
    "name",
    "attached",
    "windowCount"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Get session info"
}
```
