e2b_resize_pty
Resize a running process's terminal dimensions (cols, rows) in an E2B sandbox, targeting by PID or tag to adjust PTY size for proper display.
Instructions
Resize the PTY of a running process (cols/rows), selected by pid or tag. Note: shape inferred from process.PTY.Size; verify against E2B docs (api-reference/process/update) if it errors.
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": {
"sandboxId": "<sandboxId>",
"cols": "<cols>",
"rows": "<rows>"
},
"name": "e2b_resize_pty"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| tag | No | ||
| cols | Yes | ||
| port | No | Optional envd port; defaults to 49983 | |
| rows | Yes | ||
| username | No | ||
| sandboxId | Yes | E2B sandbox ID | |
| accessToken | No | Optional sandbox access token |