Preview Policy Rule
preview_policy_ruleValidate and analyze a proposed USBGuard rule without applying it. The rule is parsed in-process, never sent to USBGuard or a shell, so you can check syntax and safety before deployment.
Instructions
Validate and analyze a proposed rule without applying it. The text is parsed in-process and is never passed to USBGuard or a shell.
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": {
"rule": "<rule>"
},
"name": "preview_policy_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | A full USBGuard rule such as: allow id 1234:5678 hash "..." |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||