# get_tmux_variables

Source: https://libtmux.org/en/csharp/latest/mcp/tools/get_tmux_variables/

> Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Expand named tmux format variables for a pane, such as session_name or window_width. Use it for fields nothing else answers; get_pane_info already returns the common ones, and show_option reads configuration rather than live state.

MCP is in development

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

Read configured tmux commands; accepts no client-supplied executable input. Returned values may contain executable configuration. Expand named tmux format variables for a pane, such as session_name or window_width. Use it for fields nothing else answers; [get_pane_info](https://libtmux.org/en/csharp/latest/mcp/tools/get_pane_info/) already returns the common ones, and [show_option](https://libtmux.org/en/csharp/latest/mcp/tools/show_option/) reads configuration rather than live state.

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

## Arguments

* `names` required · array

  Variable names such as session_name, without #{...}. Between 1 and 64 names, each at most 64 letters, digits and underscores.

* `paneId` optional · string | null

  A pane id used as the lookup context. Omit for this server's own pane, or else the one the first session shows.

  Default: `null`.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "names": {
      "description": "Variable names such as session_name, without #{...}. Between 1 and 64 names, each at most 64 letters, digits and underscores.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "paneId": {
      "default": null,
      "description": "A pane id used as the lookup context. Omit for this server's own pane, or else the one the first session shows.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "names"
  ],
  "type": "object"
}
```

Output schema

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

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Get tmux variables"
}
```
