# select_layout

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

> Change tmux state; no client-supplied executable input. Arrange a window's panes with a named layout — even-horizontal, even-vertical, main-horizontal, main-vertical, tiled — or a layout string read from list_windows.

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. Arrange a window’s panes with a named layout — even-horizontal, even-vertical, main-horizontal, main-vertical, tiled — or a layout string read from [list_windows](https://libtmux.org/en/csharp/latest/mcp/tools/list_windows/).

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

## Arguments

* `layout` optional · string | null

  A supported layout name or layout string. Omit to reapply the window's last preset layout, if it has had one.

  Default: `null`.

* `windowId` optional · string | null

  A window id. Omit for this server's own window, 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": {
    "layout": {
      "default": null,
      "description": "A supported layout name or layout string. Omit to reapply the window's last preset layout, if it has had one.",
      "type": [
        "string",
        "null"
      ]
    },
    "windowId": {
      "default": null,
      "description": "A window id. Omit for this server's own window, or else the one the first session shows.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}
```

Output schema

```json
{
  "properties": {
    "changed": {
      "type": "string"
    },
    "paneId": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "sessionId": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    },
    "windowId": {
      "default": null,
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "changed"
  ],
  "type": "object"
}
```

Tool annotations

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