Resize pane

resize_pane

resize_pane
mutating tool

Resize a tmux pane.

Returns:

PaneInfo

Use when you need to adjust pane dimensions.

Side effects: Changes pane size. May affect adjacent panes.

Example:

{
  "tool": "resize_pane",
  "arguments": {
    "pane_id": "%0",
    "height": 15
  }
}

Response:

{
  "pane_id": "%0",
  "pane_index": "0",
  "pane_width": "80",
  "pane_height": "15",
  "pane_current_command": "zsh",
  "pane_current_path": "/home/user/myproject",
  "pane_pid": "12345",
  "pane_title": "",
  "pane_active": "1",
  "window_id": "@0",
  "session_id": "$0",
  "is_caller": false
}

Parameters

Parameter

Type

Required

Default

Description

pane_id

str

no

Pane ID (e.g. ‘%1’).

session_name

str

no

Session name for pane resolution.

session_id

str

no

Session ID (e.g. ‘$1’) for pane resolution.

window_id

str

no

Window ID for pane resolution.

height

int

no

New height in lines.

width

int

no

New width in columns.

zoom

bool

no

Toggle pane zoom. If True, zoom the pane. If False, unzoom.

socket_name

str

no

tmux socket name.