# show_environment

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

> Show tmux environment variables.

MCP is in development

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

Show tmux environment variables.

Use to inspect tmux environment variables that affect child processes.

[All Python tools](https://libtmux.org/en/py/latest/mcp/tools/) · [JSON](https://libtmux.org/en/py/latest/mcp/tools/show_environment.json) · [Source](https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/env_tools.py#L125)

## Arguments

* `session_id` optional

  Session ID to query environment for.

  Default: `null`.

* `session_name` optional

  Session name to query environment for.

  Default: `null`.

* `socket_name` optional

  tmux socket name.

  Default: `null`.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "session_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Session ID to query environment for."
    },
    "session_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Session name to query environment for."
    },
    "socket_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "tmux socket name."
    }
  },
  "type": "object"
}
```

Output schema

```json
{
  "description": "Result of a show_environment call.",
  "properties": {
    "variables": {
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "description": "Environment variable mapping",
      "type": "object"
    }
  },
  "required": [
    "variables"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false
}
```
