# list_sessions

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

> 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.

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. 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](https://libtmux.org/en/ts/latest/mcp/tools/capture_pane/) or [search\_panes](https://libtmux.org/en/ts/latest/mcp/tools/search_panes/).

[All TypeScript tools](../) · [JSON](../list_sessions.json) · [Source](https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/mcp/src/tools/discovery.ts#L60)

## 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.
