ssh_interactive_input
Send a line of input to a running SSH session to answer prompts like sudo passwords or y/N confirmations, or poll for new output when no input is sent. Returns latest output and status.
Instructions
Send a line of input to a running ssh_interactive_exec session (e.g. answer a sudo password or y/N prompt), or just poll for more output if input is omitted. Returns newly produced output and status.
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": {
"session_id": "<session_id>"
},
"name": "ssh_interactive_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Text to send. Omit to wait/poll for more output without sending anything. | |
| newline | No | Append a trailing newline after input (usually required for the remote program to see it as a submitted line). | |
| quiet_ms | No | ||
| session_id | Yes |