ssh_stream_write
Writes data verbatim to a persistent stream shell, then waits for command completion, an input prompt, or timeout so you can drive interactive SSH sessions and detect when follow-up input is needed.
Instructions
Write data verbatim to a stream shell (include a real newline to press Enter) and wait until the command finishes (shell prompt), an input prompt appears, or wait_ms elapses. Footer: [state: prompt | awaiting_input(sudo|password|confirm) | timeout]; timeout means the command may still run (use ssh_stream_read). Unread output from before the write is reported, not silently dropped.
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": {
"stream_id": "<stream_id>",
"data": "<data>"
},
"name": "ssh_stream_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to write, sent as-is; end with a newline character to press Enter | |
| wait_ms | No | Max wait for completion in ms (default 5000; 0 = do not wait) | |
| stream_id | Yes | Stream ID (selects the server shell) |