runRemoteCommand
Execute shell commands on remote SSH hosts using aliases. Set a timeout for long-running operations.
Instructions
Executes a shell command on an SSH host. For long-running commands, increase the timeout parameter.
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": {
"hostAlias": "<hostAlias>",
"command": "<command>"
},
"name": "runRemoteCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The shell command to execute | |
| timeout | No | Command timeout in milliseconds (default: 120000, max: 300000) | |
| hostAlias | Yes | Alias or hostname of the SSH host |