# show_environment

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

> Reads the environment tmux passes to processes. 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.

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

[All Java tools](https://libtmux.org/en/java/latest/mcp/tools/) · [JSON](https://libtmux.org/en/java/latest/mcp/tools/show_environment.json) · [Source](https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-mcp/src/main/java/io/github/libtmux/mcp/InspectTools.java#L328)

## Arguments

* `session_id` optional · string

  A session, such as $1; omit both for the global environment.

* `session_name` optional · string

  A session's exact name, in place of session_id.

## Schemas

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

Input schema

```json
{
  "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

```json
{
  "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"
}
```

Tool annotations

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