Search commit messages
search_commitsSearch commit messages case-insensitively, optionally filtered by author and date, returning matches newest first with hash, date, author, and subject.
Instructions
Search commit messages case-insensitively, optionally filtered by author and date. Returns matches newest first (hash, date, author, subject).
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_path": "<repo_path>",
"query": "<query>"
},
"name": "search_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of commits to return. | |
| query | Yes | Text to find in commit messages (subject or body). Literal by default: brackets, dots and stars need no escaping. | |
| regex | No | Treat query as a POSIX extended regular expression instead of literal text. | |
| since | No | Optional date filter, e.g. '2 weeks ago', '2025-06-01'. | |
| author | No | Optional case-insensitive substring of the author's name or e-mail, e.g. 'alice'. | |
| repo_path | Yes | Absolute path to a local git repository, or to any folder inside one (a sub-folder scopes the analysis to it). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||