# resize_pane

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

> Change tmux state; no client-supplied executable input. Resize one pane by dimensions or a directional amount.

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. Resize one pane by dimensions or a directional amount.

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

## Arguments

* `amount` optional · integer

  Caller-controlled amount.

* `direction` optional · string

  Caller-controlled direction.

* `height` optional · integer

  Caller-controlled height.

* `paneId` required · string

  Caller-controlled paneId.

* `width` optional · integer

  Caller-controlled width.

* `zoom` optional · boolean

  Caller-controlled zoom.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "amount": {
      "description": "Caller-controlled amount.",
      "minimum": 1,
      "type": "integer"
    },
    "direction": {
      "description": "Caller-controlled direction.",
      "enum": [
        "up",
        "down",
        "left",
        "right"
      ],
      "type": "string"
    },
    "height": {
      "description": "Caller-controlled height.",
      "minimum": 1,
      "type": "integer"
    },
    "paneId": {
      "description": "Caller-controlled paneId.",
      "type": "string"
    },
    "width": {
      "description": "Caller-controlled width.",
      "minimum": 1,
      "type": "integer"
    },
    "zoom": {
      "description": "Caller-controlled zoom.",
      "type": "boolean"
    }
  },
  "required": [
    "paneId"
  ],
  "type": "object"
}
```

Output schema

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

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Resize pane"
}
```
