Resize terminal
terminal_resizeResize a terminal session by setting columns and/or rows; omit one to keep its current value, and update PTY plus emulator so programs get SIGWINCH.
Instructions
Change the terminal size. Both cols and rows are optional; omitting one preserves the current value. Resizes both the PTY and the emulator (so programs running inside see the change via SIGWINCH).
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>"
},
"name": "terminal_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | New column count (1..1000). Omit to keep current cols. | |
| rows | No | New row count (1..1000). Omit to keep current rows. | |
| sessionId | Yes | Numeric id of the session to target. Get one by calling terminal_create. Use terminal_list to enumerate currently-known ids. |