Execute Sudo Command
proc_sudoExecute commands with sudo on remote servers via SSH, subject to allowRawSudo policy authorization.
Instructions
Executes a command with sudo privileges only when allowRawSudo policy permits it
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": {
"sessionId": "<sessionId>",
"command": "<command>"
},
"name": "proc_sudo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | SSH session ID | |
| command | Yes | Command to execute with sudo | |
| cwd | No | Working directory | |
| timeoutMs | No | Command execution timeout in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||