opnsense_get_firewall_rule
Retrieve the full configuration of a firewall rule by UUID, including scheduling, state policy, logging, gateway assignment, categories, and reply-to, to inspect or reproduce the rule.
Instructions
Get every configured field of a single firewall rule by UUID.
The search tool returns a summary; this returns the full record including scheduling, state policy, logging, gateway assignment, categories and reply-to, which is what you need before changing or reproducing a rule.
Args: params (GetRuleInput): Validated input containing: - uuid (str): Rule UUID - response_format (ResponseFormat): 'markdown' or 'json'
Returns: str: Markdown field list, or JSON containing the full rule object. Enum fields are flattened from OPNsense's {"value": ..., "selected": 1} form to the selected value.
Error Handling: - Returns a not-found message when the UUID does not exist
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |