Commit search
commit_searchSearch commit messages newest first for a literal, case-insensitive term to find when and why changes happened; filter by time window, 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 | Repository name or absolute path from the allowlist. Defaults to the first configured repo. | |
| limit | No | Maximum number of results (1-100). | |
| 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. |