git_show_commit
Show a Git commit's metadata, changed files, and optional patch to review modifications without altering the repository.
Instructions
Show commit metadata, changed files, and optionally its 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": {
"repositoryId": "<repositoryId>"
},
"name": "git_show_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| revision | No | HEAD | |
| contextLine | No | Number of unchanged lines shown before and after each patch change. | |
| findRenames | No | Detect renamed files regardless of repository diff configuration. | |
| includePatch | No | ||
| repositoryId | Yes | ID returned by git_list_repositories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | Yes | ||
| truncated | Yes |