commits
Browse commit history and view diffs. Use 'list' to list commits (optionally filtered to a file path). Use 'diff' to get the unified diff of a single commit.
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": {
"action": "<action>",
"owner": "<owner>",
"repo": "<repo>"
},
"name": "commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | Branch, tag, or commit SHA. Required for diff; optional start point for list | |
| page | No | Page number (1-based). For list | |
| path | No | File or directory path. For list: only commits touching this path. For diff: only this file's diff | |
| repo | Yes | Repository name | |
| limit | No | Page size. For list | |
| owner | Yes | Repository owner | |
| action | Yes | Operation to perform |