MCPTools

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.

toolMCPlatest

resize_pane

resize_pane( height?: integer, target: object, width?: integer, )

Request pane width or height in cells. tmux may constrain the resulting size to fit its window.

MCP request method
tools/call Send resize_pane as the tool name, with the arguments below.
Tool selection
Opt in with --tool resize_pane.

Arguments#

additionalProperties
false

Matches one or more variants.

Result#

Returns object | object

Matches one or more variants.

Annotations#

destructiveHint
true
idempotentHint
true
openWorldHint
true
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"anyOf": [
{
"required": [
"width"
]
},
{
"required": [
"height"
]
}
],
"properties": {
"height": {
"maximum": 10000,
"minimum": 1,
"type": "integer"
},
"target": {
"additionalProperties": false,
"description": "Explicit captured target; omission requires a configured caller pane",
"properties": {
"generation": {
"description": "Opaque generation from list_panes",
"maxLength": 128,
"type": "string"
},
"paneId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^%(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"paneId",
"generation"
],
"type": "object"
},
"width": {
"maximum": 10000,
"minimum": 1,
"type": "integer"
}
},
"required": [
"target"
],
"type": "object"
}
Output schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"completed": {
"type": "boolean"
},
"generationGuarantee": {
"type": "string"
},
"target": {
"additionalProperties": false,
"properties": {
"generation": {
"description": "Opaque generation from list_panes",
"maxLength": 128,
"type": "string"
},
"paneId": {
"description": "Valid UTF-8; at most 64 bytes",
"maxLength": 64,
"pattern": "^%(0|[1-9][0-9]*)$",
"type": "string"
}
},
"required": [
"paneId",
"generation"
],
"type": "object"
}
},
"required": [
"completed",
"generationGuarantee",
"target"
],
"type": "object"
},
{
"properties": {
"error": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"effects": {
"enum": [
"none",
"possible"
]
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
}
},
"required": [
"code",
"message",
"effects",
"retryable"
],
"type": "object"
}
},
"required": [
"error"
],
"type": "object"
}
],
"type": "object"
}
Esc

Type to search.

Reference preview Open reference