ssh_sudo_auth
Answer a pending sudo password prompt in an SSH stream using the password stored in the OS credential store; only sudo prompts are accepted and no secret is passed manually.
Instructions
Answer a pending sudo password prompt in a stream with the password stored in the OS credential store (Windows Credential Manager / macOS Keychain / Linux Secret Service); never pass it yourself. Only acts when the stream shows exactly "[sudo] password for :" or the sudo-rs prompt "[sudo: authenticate] Password:" (state awaiting_input(sudo)); other prompts (ssh, su, mysql, Password:) are refused and nothing is sent. Call it right after a command you typed that starts with sudo. Waits like ssh_stream_write.
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>"
},
"name": "ssh_sudo_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_ms | No | Max wait for completion after sending in ms (default 5000) | |
| stream_id | Yes | Stream ID showing awaiting_input(sudo) |