terminal_resize
Adjust a terminal session's columns and rows to prevent truncated output and accommodate content or commands that depend on terminal dimensions.
Instructions
Resize a terminal session to adjust its dimensions. Useful when output is truncated or when you need to accommodate different content formats. Some commands and applications behave differently based on terminal size.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"cols": "<cols>",
"rows": "<rows>"
},
"name": "terminal_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | New number of columns (width). Common values: 80, 120, 160. Use larger values for wide output or tables. | |
| rows | Yes | New number of rows (height). Common values: 24, 40, 60. Use larger values for long output or logs. | |
| sessionId | Yes | Terminal session ID to resize |