pty_control
Manage active PTY sessions by resizing dimensions, sending POSIX signals, or closing the session. Enables precise control over terminal processes in Linux sandboxes.
Instructions
Control an existing PTY session: resize, signal, or close.
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": {
"session_name": "<session_name>",
"action": "<action>"
},
"name": "pty_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | New terminal width (required for ``resize``). | |
| rows | No | New terminal height (required for ``resize``). | |
| action | Yes | One of ``resize``, ``signal``, ``close``. | |
| signal | No | POSIX signal name for ``signal`` (e.g. ``SIGINT``, ``SIGTERM``, ``SIGWINCH``, ``SIGUSR1``). | |
| session_name | Yes | The PTY session name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||