MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

libtmux_mcp.tools.session_tools.get_session_info

libtmux_mcp.tools.session_tools.get_session_info ( session_id: str | None = None, session_name: str | None = None, socket_name: str | None = None, ) → SessionInfo

Return metadata for a single tmux session (ID, name, window count, activity).

Description#

Use this instead of list_sessions + filter when you only need one session's info. Resolves by session_id first; falls back to session_name.

Parameters
Returns

SessionInfo Serialized session metadata.

Esc

Type to search.

Reference preview Open reference