MCPconceptAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

LibTmux.Mcp.SessionInfo

[UnsupportedOSPlatform("windows")] public sealed record SessionInfo( string SessionId, string Name, bool Attached, int? WindowCount )

What a session is.

Description

There is no session size. tmux removed the session_width and session_height formats in 2.9, so on every supported version those fields could only ever answer null.

Parameters
  • SessionId (string) – The session's identifier, such as $0.

  • Name (string) – The session name.

  • Attached (bool) – Whether a client is attached to it. Never counts a control client this MCP server opened for a wait or a capture - tmux counts that the same way it counts a human client, and a session nobody is watching must not read as attached just because it is being observed.

  • WindowCount (int?) – How many windows it holds.

Properties4

SessionInfo properties
NameTypeDescription
SessionId string The session's identifier, such as $0.
Name string The session name.
Attached bool Whether a client is attached to it. Never counts a control client this MCP server opened for a wait or a capture - tmux counts that the same way it counts a human client, and a session nobody is watching must not read as attached just because it is being observed.
WindowCount int? How many windows it holds.

Other members1 members

  • From Describes a session the library has already materialized.
Esc
Search in

Type to search.

Reference previewOpen reference