# get_session_info

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

> Inspect tmux metadata; accepts no client-supplied executable input. Return metadata for one session.

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. Return metadata for one session.

[All Swift tools](https://libtmux.org/en/swift/latest/mcp/tools/) · [JSON](https://libtmux.org/en/swift/latest/mcp/tools/get_session_info.json) · [Source](https://github.com/libtmux/libtmux-swift/blob/63551afeae8ea3d272e5262208b87735888daf5f/Sources/LibTmuxMCP/ToolOperation.swift#L9)

## Arguments

* `session` required · string

  Caller-controlled session.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "session": {
      "description": "Caller-controlled session.",
      "type": "string"
    }
  },
  "required": [
    "session"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "session": {
      "additionalProperties": false,
      "properties": {
        "createdAt": {
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "isAttached": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "ref": {
          "type": "string"
        },
        "windowCount": {
          "type": "integer"
        }
      },
      "required": [
        "createdAt",
        "id",
        "isAttached",
        "name",
        "ref",
        "windowCount"
      ],
      "type": "object"
    }
  },
  "required": [
    "session"
  ],
  "type": "object"
}
```

Tool annotations

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