shell_send
Send commands, passwords, or selections to a persistent SSH shell session for multi-step interactions like bastion host logins. Specify server by alias or host.
Instructions
发送输入到持久化 shell 会话(用于多轮交互,如堡垒机穿透登录流程)。必须指定目标服务器:使用 alias(推荐)或 host。只有一个活跃连接时可省略目标。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | 要发送的输入内容(如命令、密码、选择项等) | |
| alias | No | 服务器别名(推荐) | |
| host | No | 服务器地址(多个活跃连接时必须指定 alias 或 host,单连接时可省略) | |
| port | No | SSH 端口(可选) | |
| username | No | 用户名(可选,配合 host 使用) | |
| timeout | No | 等待响应超时时间(毫秒,默认 10000,最小 1000) | |
| waitForPrompt | No | 是否等待提示符出现(默认 true) | |
| clearBuffer | No | 发送前是否先清空输出缓冲区(默认 false) | |
| confirmationToken | No | 危险命令确认 token | |
| targetConfirmationToken | No | 服务器切换确认 token |