# list_sessions

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

> Inspect tmux metadata; accepts no client-supplied executable input. List the tmux sessions. This reads names and sizes, not terminal text — to find what a pane is showing, use search_panes.

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. List the tmux sessions. This reads names and sizes, not terminal text — to find what a pane is showing, use [search_panes](https://libtmux.org/en/csharp/latest/mcp/tools/search_panes/).

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

## Arguments

This tool has no top-level named arguments. Consult its schema below.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {},
  "type": "object"
}
```

Output schema

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

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "List sessions"
}
```
