# show_environment

Source: https://libtmux.org/en/csharp/latest/mcp/tools/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 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. 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.

[All C# tools](https://libtmux.org/en/csharp/latest/mcp/tools/) · [JSON](https://libtmux.org/en/csharp/latest/mcp/tools/show_environment.json) · [Source](https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Mcp/Policy/CapabilityModel.cs#L584)

## Arguments

* `name` optional · string | null

  One variable name, which answers its value. Omit for every name with hasValue instead of values.

  Default: `null`.

* `session` optional · string | null

  A session id or name. Omit for the server environment.

  Default: `null`.

## Schemas

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

Input schema

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

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

Tool annotations

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