# show_environment

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

> Read the tmux environment; accepts no client-supplied executable input. Returned values may contain secrets. Reads the environment tmux passes to processes.

MCP is in development

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

Read the tmux environment; accepts no client-supplied executable input. Returned values may contain secrets. Reads the environment tmux passes to processes.

[All Go tools](https://libtmux.org/en/go/latest/mcp/tools/) · [JSON](https://libtmux.org/en/go/latest/mcp/tools/show_environment.json) · [Source](https://github.com/libtmux/libtmux-go/blob/aaf86678fe0cbdf56f9e1c9c46b0db0704e15656/mcp/manifest_catalog.go#L275)

## Arguments

* `session` optional · string

  a session name; omit for the only session

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "session": {
      "description": "a session name; omit for the only session",
      "type": "string"
    }
  },
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "sessionName": {
      "type": "string"
    },
    "truncated": {
      "type": "boolean"
    },
    "truncatedBytes": {
      "type": "integer"
    },
    "truncatedLines": {
      "type": "integer"
    },
    "valuesWithheld": {
      "type": "boolean"
    },
    "variables": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "removed": {
            "type": "boolean"
          },
          "scope": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "scope"
        ],
        "type": "object"
      },
      "type": [
        "array"
      ]
    }
  },
  "required": [
    "sessionName",
    "variables",
    "truncated"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "openWorldHint": true,
  "title": "Show tmux environment"
}
```
