Query Batch
query_batchBatch vulnerability query against OSV.dev (up to 1000 entries per call), for SBOM-style "scan every dependency in this lockfile" workflows. Pass an array of {package:{name,ecosystem}, version?} or {commit} entries. Returns the vuln IDs matched per query (use get_vulnerability for full detail per ID). Keyless.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"queries": [
{
"package": {
"name": "django",
"ecosystem": "PyPI"
},
"version": "3.0.0"
},
{
"package": {
"name": "log4j-core",
"ecosystem": "Maven"
},
"version": "2.14.1"
},
{
"package": {
"name": "lodash",
"ecosystem": "npm"
},
"version": "4.17.20"
}
]
},
"name": "query_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queries | Yes | Up to 1000 query objects. Each: {package:{name,ecosystem}, version?} or {commit}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No | Batch query results (one per input query) |