ssh_shell_open
Opens a persistent interactive shell on an existing SSH session, preserving working directory and environment variables across commands. Ideal for long-running tasks like builds or using tmux.
Instructions
Open a persistent interactive shell on the SSH session. The shell preserves working directory, environment variables, and running processes across multiple send/read calls. Ideal for screen/tmux, long builds, etc.
If a shell is already open, this is a no-op (returns existing shell info).
Args: session_id: The session ID returned by ssh_connect. term: Terminal type (default: xterm). width: Terminal width in columns (default: 200). height: Terminal height in rows (default: 50).
Returns: Confirmation that the shell is open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| term | No | xterm | |
| width | No | ||
| height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |