resize_window
-
Sets a window’s width, height or both. Change tmux state; no client-supplied executable input.
- MCP request method
tools/callSendresize_windowas the tool name, with the arguments below.- Wraps
io.github.libtmux.Window.Window.resizeToThe library call this tool makes:libtmux-mcp/src/main/java/io/github/libtmux/mcp/Operations.java:261.
Arguments
-
Height in terminal cells; omit to retain it. Defaults to 0.
-
Width in terminal cells; omit to retain it. Defaults to 0.
-
The window ID, such as @1.
No other arguments are accepted.
Result
Returns object
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Resize a window"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
observechange
Every Java tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"height": {"default": 0,"description": "Height in terminal cells; omit to retain it. Defaults to 0.","type": "integer"},"width": {"default": 0,"description": "Width in terminal cells; omit to retain it. Defaults to 0.","type": "integer"},"window_id": {"description": "The window ID, such as @1.","type": "string"}},"required": ["window_id"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"active": {"type": "boolean"},"id": {"type": "string"},"index": {"type": "integer"},"name": {"type": "string"},"panes": {"type": "integer"},"session_id": {"type": "string"},"size": {"type": "string"}},"required": ["id","index","name","session_id","active","panes","size"],"type": "object"}