Batch query known vulnerabilities
batch_query_vulnerabilitiesQuery OSV.dev for known vulnerabilities across a whole npm dependency inventory at once: either pass a flat {packages:[...]} list, or paste raw package.json / lockfile / CycloneDX JSON / SPDX JSON content via content. The tool normalizes npm dependencies first, then chunk-queries OSV behind the scenes so large SBOMs don't stop at the upstream 100-package batch limit. Each finding includes severity, a summary, CVE aliases, and the fixed version — not just a bare advisory ID — so a dependency audit answer doesn't need a follow-up call per flagged package.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Raw dependency inventory content: package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, CycloneDX JSON, or SPDX JSON. Use this OR `packages`, not both. | |
| packages | No | Explicit package list (1-1000 items). Use this OR `content`, not both. | |
| includeDevDependencies | No | Ignored when using `packages`; only applies when `content` is a manifest/lockfile format that distinguishes dev dependencies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| warnings | No | ||
| inputFormat | No | ||
| ignoredCount | No | ||
| enrichmentNote | No | ||
| queryFailureCount | No | ||
| parsedPackageCount | No | ||
| totalVulnerabilities | Yes | ||
| packagesWithVulnerabilities | Yes |