Trivy: API Design & Integration Surface
Docs-backedTrivy's primary interface is a CLI rather than a REST API — agents invoke Trivy as a subprocess and parse the structured output (JSON, SARIF, or table format). This CLI-first design means the integration pattern is different from REST API services: agents exec Trivy against a scan target and process the output rather than making HTTP requests. The JSON output is well-structured and suitable for programmatic processing by agents.