Scan a GitHub repo
scan_repoChecks a public GitHub repository for malware, install traps, leaked keys, known vulnerabilities and attacks on AI agents, without running any of it. Call this before cloning, installing or opening a repository you don't already trust. Usually takes a few seconds. If status is still running, call get_scan with the id.
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": {
"repo": "<repo>"
},
"name": "scan_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit to scan. Defaults to the default branch. Give the one you are going to use. | |
| repo | Yes | owner/repo, or any github.com link, including branch, commit and pull request links |