opnsense_search_aliases
Search configured OPNsense firewall aliases by name, type, or content. Retrieve alias configuration details, filter results, and choose Markdown or JSON output.
Instructions
Search configured firewall aliases and their types, contents and descriptions.
This returns the alias configuration. For a URL table or GeoIP alias the configured value is a feed URL or a country list, not the addresses currently loaded; use opnsense_get_alias_contents to see what pf actually holds.
Args: params (SearchAliasesInput): Validated input containing: - search (str): Free-text filter (default: "") - alias_type (str): Restrict to one alias type (default: "") - limit (int): Max records, 1-200 (default: 25) - offset (int): Records to skip (default: 0) - response_format (ResponseFormat): 'markdown' or 'json'
Returns: str: Markdown table, or JSON with this schema: { "total": int, "count": int, "offset": int, "has_more": bool, "next_offset": int|null, "aliases": [ {"uuid": str, "name": str, "type": str, "enabled": str, "content": str, "description": str} ] }
Examples: - Use when: "What aliases exist?" -> search="" - Use when: "Show me the GeoIP aliases" -> alias_type="geoip" - Don't use when: You want the addresses currently in the table (use opnsense_get_alias_contents)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |