Parse Rego to AST
rego_parse_astParse Rego policy source code into a JSON abstract syntax tree (AST) for programmatic inspection of policy structure.
Instructions
Parse Rego source to a JSON AST using opa parse. Returns the AST as a tree of nodes (package, imports, rules, expressions, terms). Use this when you need to introspect policy structure programmatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Rego source code to parse. |