polkit_pkexec
Execute a command with elevated privileges via pkexec, specifying target user (default root) and timeout to safely perform administrative tasks.
Instructions
Execute a command with elevated privileges using pkexec CLI escalation.
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": "polkit_pkexec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Target user (default 'root'). | root |
| command | Yes | Command string to execute. | |
| timeout_seconds | No | Timeout in seconds. |