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.

mcp.caller.CallerIdentity

struct mcp.caller.CallerIdentity

The tmux pane hosting this process, as its environment describes it.

Description#

TMUX carries socket_path,server_pid,session_number; TMUX_PANE carries the pane id. Either both variables form one complete identity or the context is malformed; only two absent variables mean detached operation, and an empty variable counts as absent.

Members7#

Common operations1#

  • pane_id method The pane this process runs in, when tmux named one.

Other members6#

  • from_env method Read the identity from this process's environment.
  • from_values method Build an identity from explicit values, as the environment would give them.
  • is_malformed method Whether the variables were set but do not describe one tmux pane.
  • socket method The socket path this process was started from, when tmux named one.
  • relation_to method Whether a pane on the given server is provably this process's own.
  • may_be_on method Whether this process might be running on the given server.
Esc

Type to search.

Reference previewOpen reference