ssh_exec
Execute commands on a remote server over SSH and return stdout, stderr, and exit code, enabling AI assistants to run remote tasks and inspect results.
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 |
|---|---|---|---|
| command | Yes | Command to execute on the remote server | |
| timeout | No | Command timeout in milliseconds | |
| sessionId | Yes | SSH session ID from ssh_connect |