# get_window_info

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

> Inspect tmux metadata; accepts no client-supplied executable input. Return metadata and placements for one window.

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. Return metadata and placements for one window.

[All Swift tools](https://libtmux.org/en/swift/latest/mcp/tools/) · [JSON](https://libtmux.org/en/swift/latest/mcp/tools/get_window_info.json) · [Source](https://github.com/libtmux/libtmux-swift/blob/63551afeae8ea3d272e5262208b87735888daf5f/Sources/LibTmuxMCP/ToolOperation.swift#L11)

## Arguments

* `windowId` required · string

  Caller-controlled windowId.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "windowId": {
      "description": "Caller-controlled windowId.",
      "type": "string"
    }
  },
  "required": [
    "windowId"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "placements": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "index": {
            "type": "integer"
          },
          "isActive": {
            "type": "boolean"
          },
          "ref": {
            "type": "string"
          },
          "sessionID": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "windowID": {
            "type": "string"
          }
        },
        "required": [
          "index",
          "isActive",
          "ref",
          "sessionID",
          "target",
          "windowID"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "window": {
      "additionalProperties": false,
      "properties": {
        "height": {
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "paneCount": {
          "type": "integer"
        },
        "ref": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        }
      },
      "required": [
        "height",
        "id",
        "name",
        "paneCount",
        "ref",
        "width"
      ],
      "type": "object"
    }
  },
  "required": [
    "placements",
    "window"
  ],
  "type": "object"
}
```

Tool annotations

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