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.

CallerIdentity

struct CallerIdentity : struct CallerIdentity

Where this MCP server is itself running, when that is inside tmux.

Description#

An agent driving tmux from a pane is one kill-pane away from ending the conversation it is having. Knowing which pane is its own is what lets the tools refuse that, and lets a listing mark the row that is the caller so the agent never has to ask.

Members8#

  • !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
  • paneID: let paneID: PaneID? property From TMUX_PANE, which tmux sets in every process it starts.
  • sessionID: let sessionID: SessionID? property From TMUX, in the same $… spelling as a session id.
  • socketPath: let socketPath: String? property
  • serverProcessID: let serverProcessID: Int? property The surrounding server's process id. It authenticates alternate routes to one socket and rejects a daemon that replaced one exact route.
  • current(environment:) method Reads the surrounding tmux, or nil when both context variables are absent.
  • isOn(_:) method Whether server is the tmux this process is running inside, including when caller and server reached its socket through different links.
  • init(from:) method inherited Creates a new instance by decoding from the given decoder.
Esc

Type to search.

Reference previewOpen reference