resize_pane
-
Move one edge of a pane by a number of rows or columns. Change tmux state; no client-supplied executable input.
- MCP request method
tools/callSendresize_paneas the tool name, with the arguments below.- Wraps
pane.Pane.resize_byThe library call this tool makes:crates/tmux-mcp/src/tools/control.rs:344.
Arguments
-
How many rows or columns to move it by.
- minimum
0
-
direction(ResizeDirectionSchema)Which edge to move:
up,down,left, orright. -
The
%-prefixed pane id.
No other arguments are accepted.
Result
Returns object
Types
Annotations
Advertised by the server
destructiveHintfalseidempotentHintfalseopenWorldHintfalsereadOnlyHintfalsetitle"Resize Pane"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
change
The capability row states what this tool reads, changes and reaches; the annotations are as the server advertises them.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"$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
{"$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"}