show_environment
-
Read the tmux environment; accepts no client-supplied executable input. A listing answers names without values, and a named variable is still withheld when the name reads as a credential. Read what a NEW pane will inherit, at the server or session level — not what an already-running shell has.
- MCP request method
tools/callSendshow_environmentas the tool name, with the arguments below.
Arguments
-
One variable name, which answers its value. Omit for every name with hasValue instead of values.
-
session? =null(string | null)A session id or name. Omit for the server environment.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Show environment"
Capability
- Toolset
- Inspect Request tmux state and terminal output.
- Process reach
none- tmux effects
observe
Every C# 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": {"name": {"default": null,"description": "One variable name, which answers its value. Omit for every name with hasValue instead of values.","type": ["string","null"]},"session": {"default": null,"description": "A session id or name. Omit for the server environment.","type": ["string","null"]}},"type": "object"}Output schema
{"properties": {"result": {"items": {"properties": {"hasValue": {"type": "boolean"},"isRemoved": {"type": "boolean"},"name": {"type": "string"},"value": {"type": ["string","null"]},"withheld": {"type": "boolean"}},"required": ["name","value","isRemoved","hasValue","withheld"],"type": "object"},"type": "array"}},"required": ["result"],"type": "object"}