MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

resize_pane

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

All Rust tools · JSON · Source

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
{
"$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"
}
Tool annotations
{
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false,
"readOnlyHint": false,
"title": "Resize Pane"
}
Esc

Type to search.