server_exec
Run shell commands on a remote server over SSH, with optional working directory, timeout, and safe-mode confirmation for high-risk operations.
Instructions
Run a shell command on the server over SSH.
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": "server_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional remote working directory. | |
| command | Yes | Shell command to run. | |
| confirm | No | Confirm high-risk command in safe mode. | |
| timeout | No | Optional timeout in seconds. |