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

Sets a pane’s width, height or both. Change tmux state; no client-supplied executable input.

All Java tools · JSON · Source

Arguments

height optional · integer
Height in terminal cells; omit to retain it. Defaults to 0.

Default: 0.

pane_id required · string
The pane to act on, such as %1. Every listing tool returns these.
width optional · integer
Width in terminal cells; omit to retain it. Defaults to 0.

Default: 0.

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"height": {
"default": 0,
"description": "Height in terminal cells; omit to retain it. Defaults to 0.",
"type": "integer"
},
"pane_id": {
"description": "The pane to act on, such as %1. Every listing tool returns these.",
"type": "string"
},
"width": {
"default": 0,
"description": "Width in terminal cells; omit to retain it. Defaults to 0.",
"type": "integer"
}
},
"required": [
"pane_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"note": {
"type": "string"
},
"what": {
"type": "string"
}
},
"required": [
"kind",
"id",
"what"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Resize a pane"
}
Esc

Type to search.