getCommitDetails
Retrieve commit details: author, date, message, changed files, and optional diff patch. Accepts commit hash and optional file filter.
Instructions
Full commit details: author, date, message, changed files, optional diff patch.
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": {
"commitHash": "<commitHash>"
},
"name": "getCommitDetails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Limit diff to a single file (absolute or workspace-relative) | |
| commitHash | Yes | Full or abbreviated commit hash | |
| includePatch | No | Include full diff patch. Default: true. Set false for metadata/stats only. |