execute_sudo
Runs a command with sudo on a remote Linux host, preserving legacy compatibility for privileged SSH tasks.
Instructions
Legacy compatibility - Execute command with sudo on remote Linux host
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": {
"hostname": "<hostname>",
"command": "<command>"
},
"name": "execute_sudo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| hostname | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |