Execute Command (sudo)
sudo-execExecute commands on remote machines via passwordless sudo, providing privileged access without password prompts.
Instructions
Execute a command on a machine using passwordless sudo (sudo -n).
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": {
"machine": "<machine>",
"command": "<command>"
},
"name": "sudo-exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| machine | Yes | ||
| confirm_code | No |