# resize_pane

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

> Move one edge of a pane by a number of rows or columns. Change tmux state; no client-supplied executable input.

MCP is in development

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

Move one edge of a pane by a number of rows or columns. Change tmux state; no client-supplied executable input.

[All Rust tools](https://libtmux.org/en/rs/latest/mcp/tools/) · [JSON](https://libtmux.org/en/rs/latest/mcp/tools/resize_pane.json) · [Source](https://github.com/libtmux/libtmux-rs/blob/2cef1aa642182dd1970c3688feb6a568ff666e64/crates/tmux-mcp/src/tools/control.rs#L319)

## Arguments

* `cells` required · integer

  How many rows or columns to move it by.

* `direction` required

  Which edge to move: \`up\`, \`down\`, \`left\`, or \`right\`.

* `pane` required · string

  The \`%\`-prefixed pane id.

## Schemas

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

Input schema

```json
{
  "$defs": {
    "ResizeDirectionSchema": {
      "enum": [
        "up",
        "down",
        "left",
        "right"
      ],
      "type": "string"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cells": {
      "description": "How many rows or columns to move it by.",
      "minimum": 0,
      "type": "integer"
    },
    "direction": {
      "$ref": "#/$defs/ResizeDirectionSchema",
      "description": "Which edge to move: `up`, `down`, `left`, or `right`."
    },
    "pane": {
      "description": "The `%`-prefixed pane id.",
      "type": "string"
    }
  },
  "required": [
    "pane",
    "direction",
    "cells"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "height": {
      "description": "How tall it is now, in rows.",
      "minimum": 0,
      "type": "integer"
    },
    "pane": {
      "description": "The pane that was resized.",
      "type": "string"
    },
    "width": {
      "description": "How wide it is now, in columns.",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "pane",
    "width",
    "height"
  ],
  "type": "object"
}
```

Tool annotations

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