ssh_exec
Run a shell command on a remote SSH server and retrieve the combined output including stdout, stderr, and exit code.
Instructions
Execute a command on the remote host via SSH.
Run a shell command on the connected remote server and return the combined output including stdout, stderr, and exit code.
Args: command: Shell command to execute on the remote host.
Returns: Formatted string with 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": {
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |