open_session
Open a persistent raw terminal session for SSH, Telnet, console, or serial network devices; write commands and read full output in one connection.
Instructions
Open a raw interactive terminal session and keep it open.
Describe the target inline: protocol and port describe the
final target, credentials are references (a pass entry, an
explicit SSH key file) for ssh/telnet/console. The optional single-hop
route is socks (local SOCKS5 proxy) or proxyjump (SSH jump
host); use proxyjump to reach a bastion quickly and run further ssh or
telnet hops yourself with terminal_write inside the same session.
For local console cables use protocol="serial" with an absolute
/dev/tty* path in host, serial parameters and
allow_serial=true. Every call goes through the client's permission
approval gate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| route | No | ||
| legacy | No | ||
| serial | No | ||
| protocol | No | ssh | |
| credentials | No | ||
| allow_serial | No | ||
| allow_telnet | No | ||
| host_key_policy | No | strict | |
| allow_plaintext_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| route | Yes | ||
| state | Yes | ||
| prompt | No | ||
| warnings | No | ||
| created_at | Yes | ||
| session_id | Yes | ||
| last_used_at | Yes |