# libtmux_mcp.tools.pane_tools.resize_pane

- **Module:** libtmux_mcp.tools.pane_tools
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/pane_tools/layout.py#L21
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-pane_tools-resize_pane/

```
libtmux_mcp.tools.pane_tools.resize_pane(pane_id: str | None = None, session_name: str | None = None, session_id: str | None = None, window_id: str | None = None, height: int | None = None, width: int | None = None, zoom: bool | None = None, socket_name: str | None = None) -> PaneInfo
```

Resize a tmux pane.

Use when adjusting layout for better readability or to fit content.

## Parameters

- `pane_id` (str | None): Pane ID (e.g. '%1').
- `session_name` (str | None): Session name for pane resolution.
- `session_id` (str | None): Session ID (e.g. '$1') for pane resolution.
- `window_id` (str | None): Window ID for pane resolution.
- `height` (int | None): New height in lines.
- `width` (int | None): New width in columns.
- `zoom` (bool | None): Toggle pane zoom. If True, zoom the pane. If False, unzoom.
- `socket_name` (str | None): tmux socket name.

## Returns

PaneInfo
    Serialized pane object.
