open_session
Opens a persistent SSH shell session on a host you already have access to and returns a sessionId for running commands. Request host access first, or it fails.
Instructions
SSH into a remote server. Opens a new persistent, PTY-less shell session on a host you already have access to (see request_host_access). Fails with HOST_ACCESS_REQUIRED if you do not — this tool never prompts the user itself, request access first. The returned session stays open (and visible to the user in a read-only terminal tab) until close_session, an idle timeout, or the MCP connection drops; use the returned sessionId with run_command.
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": {
"hostId": "<hostId>"
},
"name": "open_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostId | Yes | The opaque id of the host to connect to, as returned by list_hosts or request_host_access. |