ssh_exec
Run commands on a remote server over SSH and capture full output including errors and exit codes.
Instructions
Execute a command on the remote server via SSH. 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": {
"sessionId": "<sessionId>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | SSH session ID from ssh_connect | |
| command | Yes | Command to execute on the remote server | |
| timeout | No | Command timeout in milliseconds |