Resize window

resize_window

resize_window
mutating tool

Resize a tmux window.

Returns:

WindowInfo

Use when you need to adjust the window dimensions.

Side effects: Changes window size.

Example:

{
  "tool": "resize_window",
  "arguments": {
    "session_name": "dev",
    "width": 120,
    "height": 40
  }
}

Response:

{
  "window_id": "@0",
  "window_name": "editor",
  "window_index": "1",
  "session_id": "$0",
  "session_name": "dev",
  "pane_count": 2,
  "window_layout": "baaa,120x40,0,0[120x20,0,0,0,120x19,0,21,1]",
  "window_active": "1",
  "window_width": "120",
  "window_height": "40"
}

Parameters

Parameter

Type

Required

Default

Description

window_id

str

no

Window ID (e.g. ‘@1’).

window_index

str

no

Window index within the session.

session_name

str

no

Session name.

session_id

str

no

Session ID.

height

int

no

New height in lines.

width

int

no

New width in columns.

socket_name

str

no

tmux socket name.