MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

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/call Send resize_pane as 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

No other arguments are accepted.

Result

Returns object

Types

ResizeDirectionSchema: "up" | "down" | "left" | "right"

type

Annotations

Advertised by the server

destructiveHint
false
idempotentHint
false
openWorldHint
false
readOnlyHint
false
title
"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"
}
Esc
Search in

Type to search.

Reference previewOpen reference