ssh_stream_start
Open a stateful interactive SSH shell bound to a unique stream_id, optionally run an initial command, and reuse the stream for later commands without reconnecting.
Instructions
Open a stateful interactive shell (own channel, history disabled) on a server, bound to stream_id; later stream calls use stream_id only. Optional command runs like ssh_stream_write but waits only 2000 ms by default, so long-running commands (tail -f, pm2 logs) return early with [state: timeout]. stream_id must be unique across servers; max 4 streams per server by default.
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": {
"server": "<server>",
"stream_id": "<stream_id>"
},
"name": "ssh_stream_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server alias from config.json (case-insensitive). Known aliases: (none configured) | |
| command | No | Optional first command (newline appended) | |
| wait_ms | No | Max wait for the first command in ms (default 2000) | |
| stream_id | Yes | Unique ID for this stream |