server_sudo_exec
Execute privileged shell commands via sudo -S, with optional working directory, timeout, and high-risk confirmation for safe remote administration.
Instructions
Run a privileged shell command using sudo -S.
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_sudo_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. |