ssh_execute_command
Run bash or shell commands on a remote server over SSH. Supports working directory, timeout, and sudo for system administration tasks.
Instructions
Execute a bash or shell command on a remote server over SSH. Supports working directory, timeouts, and sudo.
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": {
"serverId": "<serverId>",
"command": "<command>"
},
"name": "ssh_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional remote working directory to execute the command from. | |
| sudo | No | Whether to run the command with sudo privilege. | |
| command | Yes | The shell command to execute. | |
| serverId | Yes | The ID of the configured target server. | |
| timeoutSeconds | No | Optional execution timeout in seconds (default: 60). |