execute_interactive_command
Execute interactive shell commands on remote SSH servers with input data support for automated workflows and scripted interactions.
Instructions
执行交互式命令(可以发送输入数据)
Args:
command: 要执行的shell命令
input_data: 要发送给命令的输入数据
timeout: 命令执行超时时间(秒),默认30秒
max_output_size: 最大输出大小(字节),默认8192(8KB)。
设置为0表示不限制(注意可能导致内存问题)。
超过限制的输出会被截断。
connection_name: SSH连接名称,如果不指定则使用默认连接
Returns:
Dict包含执行结果(同execute_command)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| input_data | No | ||
| timeout | No | ||
| max_output_size | No | ||
| connection_name | No |