Execute Sudo Command
proc_sudoExecute a command with sudo privileges only when permitted by the allowRawSudo policy.
Instructions
Executes a command with sudo privileges only when allowRawSudo policy permits it
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| command | Yes | Command to execute with sudo | |
| sessionId | Yes | SSH session ID | |
| timeoutMs | No | Command execution timeout in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| durationMs | Yes | ||
| safetyWarning | No |