polkit_check_auth
Check whether a Polkit action ID is authorized by the system authority, allowing you to verify permissions before executing privileged operations.
Instructions
Check authorization for a Polkit action ID against org.freedesktop.PolicyKit1.Authority.
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": {
"action_id": "<action_id>"
},
"name": "polkit_check_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | No | Optional details JSON string. | |
| action_id | Yes | Polkit action ID. | |
| allow_user_interaction | No | Allow interactive prompt. |