show_environment
- show_environment( session_id?: string, session_name?: string, )
-
Reads the environment tmux passes to processes. Read the tmux environment; accepts no client-supplied executable input. Returned values may contain secrets.
- MCP request method
tools/callSendshow_environmentas the tool name, with the arguments below.
Arguments
-
session_id? (string)A session, such as $1; omit both for the global environment.
-
A session’s exact name, in place of session_id.
No other arguments are accepted.
Result
Returns object
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Show tmux environment"
Capability
- Toolset
- Inspect Request tmux state and terminal output.
- Process reach
none- tmux effects
observe
Every Java tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"session_id": {"description": "A session, such as $1; omit both for the global environment.","type": "string"},"session_name": {"description": "A session's exact name, in place of session_id.","type": "string"}},"required": [],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"count": {"type": "integer"},"session": {"type": "string"},"unset": {"items": {"type": "string"},"type": "array"},"variables": {"additionalProperties": {"type": "string"},"type": "object"}},"required": ["session","count","variables","unset"],"type": "object"}