Skip to main content
Glama
liang04
by liang04

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
NameRequiredDescriptionDefault
commandYes
input_dataNo
timeoutNo
max_output_sizeNo
connection_nameNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liang04/ssh-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server