search_commits
Search commits on a repository's default branch using GitHub commit-search qualifiers like repo:, author:, and committer:. Locate specific commits with precise filters.
Instructions
Search commits on the default branch of repositories. The q parameter accepts GitHub commit-search qualifiers (e.g. "repo:octocat/Spoon-Knife css author:octocat"). Docs: https://docs.github.com/en/rest/search/search#search-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": {
"q": "<q>"
},
"name": "search_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query. Accepts qualifiers like repo:, author:, committer:, hash:, merge:, is:merge. | |
| page | No | ||
| sort | No | Field to sort results by. Defaults to relevance if omitted. | |
| order | No | Sort direction. Ignored unless sort is set. | |
| per_page | No |