Query vulnerabilities by git commit
query_by_commitQuery OSV.dev (/v1/query) by git commit SHA to detect known vulnerabilities in vendored C, C++, Go, or open-source repository commits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"commit": "<commit>"
},
"name": "query_by_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of vulnerabilities to return (1 to 100, default 20). | |
| commit | Yes | Git commit SHA hash (7 to 40 hexadecimal characters, e.g. "6879efc2c1596d11a6a6ad296f80063b558d5e0f"). |