parse_rule
Convert Sigma YAML rules, correlations, and filters into a structured JSON AST, or return structured syntax errors. Accepts inline YAML or a file path.
Instructions
Parse Sigma YAML (rules, correlations, filters; multi-document supported) into a structured AST as JSON, or return structured parse errors. Accepts inline yaml or a file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a Sigma YAML file (or directory, where the tool supports it). Mutually exclusive with `yaml`. Resolved against `--rules-dir` when relative, and must stay inside it when one is configured. | |
| yaml | No | Inline Sigma YAML (single or multi-document). Mutually exclusive with `path`. |