{
  "name": "list_sessions",
  "wireName": "list_sessions",
  "source": {
    "repo": "libtmux/libtmux-ts",
    "revision": "3fe1ca654b81b8cbf4a13b777a001a3298c87a6f",
    "extractedRevision": "ecc3eaca0b4e05a77360da9d56790b409282c63b",
    "file": "packages/mcp/src/tools/discovery.ts",
    "line": 60
  },
  "description": "Inspect tmux metadata; accepts no client-supplied executable input. Every session on this server with its id, name, window count, and whether anyone is attached. Metadata only — for what a pane shows, use capture_pane or search_panes.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {},
    "type": "object"
  },
  "outputSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "complete": {
        "type": "boolean"
      },
      "omittedEntries": {
        "maximum": 9007199254740991,
        "minimum": -9007199254740991,
        "type": "integer"
      },
      "sessions": {
        "items": {
          "additionalProperties": false,
          "properties": {
            "attachedClients": {
              "description": "Raw client count from tmux; 0 means detached. Includes control-mode clients - this server's own wait_for_text or other live read holds one open while it runs, and another program on this socket may hold others. See humanAttachedClients for a person-only count.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "humanAttachedClients": {
              "description": "attachedClients minus every control-mode client, this server's own included.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            "id": {
              "description": "Stable session id, e.g. $1.",
              "pattern": "^\\$\\d+$",
              "type": "string"
            },
            "metadataComplete": {
              "description": "Whether the session name is complete.",
              "type": "boolean"
            },
            "name": {
              "type": "string"
            },
            "omittedMetadataBytes": {
              "description": "UTF-8 bytes omitted from the session name.",
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "windows": {
              "description": "How many windows it holds.",
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "attachedClients",
            "humanAttachedClients",
            "id",
            "metadataComplete",
            "name",
            "omittedMetadataBytes",
            "windows"
          ],
          "type": "object"
        },
        "type": "array"
      }
    },
    "required": [
      "complete",
      "omittedEntries",
      "sessions"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": true,
    "idempotentHint": false,
    "openWorldHint": true,
    "readOnlyHint": false
  },
  "meta": {
    "com.git-pull.libtmux-mcp/capability": {
      "amplifiesFutureInput": false,
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": false,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "Inspect tmux metadata; accepts no client-supplied executable input. Every session on this server with its id, name, window count, and whether anyone is attached. Metadata only — for what a pane shows, use capture_pane or search_panes.",
      "inputLiteralization": {},
      "inputSchema": {
        "properties": {},
        "type": "object"
      },
      "mayExposeSecrets": true,
      "mayReturnUntrustedContent": true,
      "name": "list_sessions",
      "nestedAuthority": [],
      "outputClasses": [
        "tmux-metadata"
      ],
      "outputSchema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "properties": {
          "complete": {
            "type": "boolean"
          },
          "omittedEntries": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "sessions": {
            "items": {
              "properties": {
                "attachedClients": {
                  "description": "Raw client count from tmux; 0 means detached. Includes control-mode clients - this server's own wait_for_text or other live read holds one open while it runs, and another program on this socket may hold others. See humanAttachedClients for a person-only count.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "humanAttachedClients": {
                  "description": "attachedClients minus every control-mode client, this server's own included.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "id": {
                  "description": "Stable session id, e.g. $1.",
                  "pattern": "^\\$\\d+$",
                  "type": "string"
                },
                "metadataComplete": {
                  "description": "Whether the session name is complete.",
                  "type": "boolean"
                },
                "name": {
                  "type": "string"
                },
                "omittedMetadataBytes": {
                  "description": "UTF-8 bytes omitted from the session name.",
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "windows": {
                  "description": "How many windows it holds.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "attachedClients",
                "humanAttachedClients",
                "id",
                "metadataComplete",
                "name",
                "omittedMetadataBytes",
                "windows"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "complete",
          "omittedEntries",
          "sessions"
        ],
        "type": "object"
      },
      "processReach": "none",
      "title": "List sessions",
      "tmuxEffects": [
        "observe"
      ],
      "toolset": "inspect"
    }
  }
}
