Hunt the code a repository changed recently (one-off scan)
scan_repoA one-off bug hunt over the code a GitHub repository changed in its last days days (default 30) – no pull request, no diff from you: the server reads the history from GitHub, clones the repository and runs a deep hunt (up to 150 minutes) over the window's changed code – a large window split by the hunt into packages – and its findings come back as one deduplicated list; for a split window get_findings says how many of the files the hunt opened when it left some unopened, or that it was not measured. Use it when the user asks to scan / hunt / check their repository, or to try OhMyBug right after installing it. It is NOT a merge gate and records nothing for one. Billing and the rest of the flow are submit_review's: poll get_findings, verify every finding, confirm_findings before fixing; the deep price ($12, or $24 on a wide change) only if a medium+ bug is confirmed. One scan per repository per 24 hours.
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 | The pushed commit (full sha) or branch to scan up to; default: the repository's default branch. | |
| days | No | How far back the window reaches, in days (default 30). | |
| repo | Yes | owner/name on GitHub. The OhMyBug GitHub App must be installed on it. |