ssh_execute
Run a shell command on an active SSH session and retrieve its output.
Instructions
在已建立的 SSH 会话中执行命令并返回输出。
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": {
"session_id": "<session_id>",
"command": "<command>"
},
"name": "ssh_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | 要执行的 shell 命令 | |
| timeout | No | 命令超时毫秒数 | |
| session_id | Yes | 会话 ID(由 ssh_connect 返回) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |