list_violations
List compliance violations recorded by the most recent scan, optionally filtered by severity. Returns each violation's ID, rule, node, severity, baseline, and evidence.
Instructions
[READ] List compliance violations recorded by the most recent scan snapshot in the local twin DB (~/.vmware-harden/twin.duckdb). severity (optional string): filter to exactly one of 'critical', 'high', 'medium', 'low', 'info'; omit to return all severities. Returns every matching row (no pagination), sorted severity-descending then rule_id, each as {id, rule_id, node_id, severity, baseline_id, evidence}. Returns [] when no scan exists — run scan_target first. Read-only local DB query, no network calls. Pass a row's 'id' to get_remediation for a fix plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| severity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |