{
  "name": "list_sessions",
  "wireName": "list_sessions",
  "source": {
    "repo": "libtmux/libtmux-rs",
    "revision": "f0e37052c232636b61d095817046e6bfc8f2ca40",
    "extractedRevision": "7a5def5921b12f58d47327cf625c039de5fa8ea7",
    "file": "crates/tmux-mcp/src/tools/inspect.rs",
    "line": 110
  },
  "description": "List every tmux session on the server. Inspect tmux metadata; accepts no client-supplied executable input.",
  "schemaStatus": "runtime",
  "inputSchema": {
    "additionalProperties": false,
    "properties": {},
    "type": "object"
  },
  "outputSchema": {
    "$defs": {
      "SessionView": {
        "description": "One session, as the protocol sees it.",
        "properties": {
          "attached": {
            "description": "Whether any client is attached.",
            "type": "boolean"
          },
          "id": {
            "description": "The `$`-prefixed tmux identity.",
            "type": "string"
          },
          "name": {
            "description": "The session name, absent when tmux reported none.",
            "type": "string"
          },
          "windows": {
            "description": "How many windows the session holds.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "windows",
          "attached"
        ],
        "type": "object"
      }
    },
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "sessions": {
        "description": "The sessions, in tmux's own order.",
        "items": {
          "$ref": "#/$defs/SessionView"
        },
        "type": "array"
      }
    },
    "required": [
      "sessions"
    ],
    "type": "object"
  },
  "annotations": {
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false,
    "readOnlyHint": true,
    "title": "List Sessions"
  },
  "meta": {
    "com.git-pull.libtmux-mcp/capability": {
      "amplifiesFutureInput": false,
      "inputLiteralization": {},
      "mayExposeSecrets": true,
      "mayReturnUntrustedContent": true,
      "nestedAuthority": [],
      "outputClasses": [
        "tmux-metadata"
      ],
      "processReach": "none",
      "tmuxEffects": [
        "observe"
      ],
      "toolset": "inspect"
    }
  }
}
