Commit search
commit_searchSearch commit messages for literal text to find when and why changes happened, such as ticket IDs or feature names. Filter by time, author, or path.
Instructions
Search commit messages (subject and body) on HEAD for a literal, case-insensitive text, newest first. Useful for finding when and why something changed, e.g. a ticket id, a feature name or "revert". Optionally limited to a time window, author and/or path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Only search the last N days. Omit to search the whole history. | |
| path | No | Only commits touching this file or directory. | |
| repo | No | Repo name or path; defaults to the first configured repo. | |
| limit | No | Maximum number of results. | |
| query | Yes | Text to look for in commit messages. | |
| author | No | Only commits whose author name contains this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Name of the repository that was queried. | |
| query | Yes | ||
| commits | Yes | ||
| truncated | Yes | ||
| windowDays | Yes | Null when the whole history was searched. | |
| totalMatches | Yes | All matching commits, before applying the limit. |