Search commits across public GitHub repositories
github_search_commitsSearch commits across public GitHub repositories by message, author, committer, date or hash. Each result includes the commit message, SHA, author, committer, link and repository. Read-only: returns public data and changes nothing. Costs 1 credit per request.
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": {
"sort": "<sort>",
"order": "<order>",
"count": "<count>"
},
"name": "github_search_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | Commits with this SHA (or prefix). Maps to `hash:`. | |
| sort | Yes | Sort field. Defaults to relevance ("best-match"). | best-match |
| count | Yes | Number of results to return (1–10). Defaults to 10. | |
| merge | No | Only merge commits (true) or exclude them (false). Maps to `merge:`. | |
| order | Yes | Sort direction. Defaults to "desc". | desc |
| query | No | Free-text search terms, matched against the default fields for this search type, e.g. "web framework". | |
| repos | No | Limit to these "owner/name" repositories. Maps to `repo:`. | |
| start | No | Number of results to skip (0–999). Defaults to 0. Only the first 1,000 results of a search can be paged through. | |
| author | No | Commits authored by this GitHub user. Maps to `author:`. | |
| owners | No | Limit to these owners (users or orgs). Maps to `user:`. | |
| cacheOnly | No | Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true. | |
| committer | No | Commits committed by this GitHub user. Maps to `committer:`. | |
| authoredDate | No | Filter by author date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| committedDate | No | Filter by commit date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range. | |
| cacheMaxAgeHours | No | Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24. |