# show_environment

Source: https://libtmux.org/en/cxx/latest/mcp/tools/show_environment/

> Read global or session environment values. Read the tmux environment; accepts no client-supplied executable input. Returned values may contain secrets.

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

Read global or session environment values. Read the tmux environment; accepts no client-supplied executable input. Returned values may contain secrets.

[All C++ tools](https://libtmux.org/en/cxx/latest/mcp/tools/) · [JSON](https://libtmux.org/en/cxx/latest/mcp/tools/show_environment.json) · [Source](https://github.com/libtmux/libtmux-cxx/blob/96f367a6fe247e4e5ebddd4a52ca5d5f9d07c0ec/apps/mcp/src/tool_catalog.cpp#L2097)

## Arguments

* `name` optional · string

  Optional exact environment name.

* `session` optional · string

  Optional session target.

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "name": {
      "description": "Optional exact environment name.",
      "maxLength": 256,
      "type": "string"
    },
    "session": {
      "description": "Optional session target.",
      "maxLength": 512,
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": true,
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Show the tmux environment"
}
```
