# select_window

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

> Change tmux state; no client-supplied executable input. Select one exact window appearance.

MCP is in development

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

Change tmux state; no client-supplied executable input. Select one exact window appearance.

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

## Arguments

* `sourceIndex` optional · integer

  Caller-controlled sourceIndex.

* `sourceSession` optional · string

  Caller-controlled sourceSession.

* `windowId` required · string

  Caller-controlled windowId.

## Schemas

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

Input schema

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

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "target": {
      "type": "string"
    },
    "windowId": {
      "type": "string"
    }
  },
  "required": [
    "target",
    "windowId"
  ],
  "type": "object"
}
```

Tool annotations

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