# get_window_info

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

> Inspect tmux metadata; accepts no client-supplied executable input. Read one window's name, index, size, layout, pane count and whether it is its session's current window, without listing every window. Give the window ID, or a pane ID to read the window that holds it.

MCP is in development

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

Inspect tmux metadata; accepts no client-supplied executable input. Read one window’s name, index, size, layout, pane count and whether it is its session’s current window, without listing every window. Give the window ID, or a pane ID to read the window that holds it.

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

## Arguments

* `windowId` required · string

  A window id.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "windowId": {
      "description": "A window id.",
      "type": "string"
    }
  },
  "required": [
    "windowId"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "properties": {
    "active": {
      "type": "boolean"
    },
    "height": {
      "type": "integer"
    },
    "index": {
      "type": "integer"
    },
    "layout": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "paneCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sessionId": {
      "type": "string"
    },
    "width": {
      "type": "integer"
    },
    "windowId": {
      "type": "string"
    }
  },
  "required": [
    "windowId",
    "sessionId",
    "index",
    "name",
    "width",
    "height",
    "active",
    "paneCount",
    "layout"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Get window info"
}
```
