ssh_run_interactive
Run commands on a remote host that require interactive prompt responses, such as sudo passwords, by supplying expect/answer pairs and a required timeout.
Instructions
Run a command on a remote host that needs to consume expect/answer prompts (e.g. sudo). Each entry in 'expects' is an object with 'expect' (the prompt text to wait for) and 'answer' (the response to send back). Call host_list first — it returns the uid of every host, and that value is what host_id expects. The model must use host_id only; credentials are resolved server-side. The model MUST supply timeout_seconds (1-600) appropriate for the command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute on the remote host. | |
| expects | No | List of {expect, answer} pairs in order. | |
| host_id | Yes | Identifier of an existing host: the exact `uid` value returned by `host_list`. Call `host_list` first and pass that value unchanged. | |
| timeout_seconds | Yes | Hard timeout in seconds. REQUIRED. The model must estimate an appropriate timeout based on the command's complexity (1-600 seconds). The command is terminated when the timeout expires. |