ssh_exec
Execute a shell command on a connected remote host and return stdout, stderr, and exit code to troubleshoot issues or automate tasks.
Instructions
Execute a single command on a connected remote host. Returns stdout, stderr, and exit code.
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": {
"connectionId": "<connectionId>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute | |
| timeout | No | Command timeout in milliseconds (default: 30000) | |
| connectionId | Yes | The connection ID |