get_commit_detail
Retrieve a commit's raw unified diff or just its changed-file list, with optional file filtering, path patterns, and context-line controls for code review.
Instructions
Get a commit diff as raw unified diff text, or detail:"files" for just the changed-file list (no diff bodies).
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": {
"workspace": "<workspace>",
"repository": "<repository>",
"commit_id": "<commit_id>"
},
"name": "get_commit_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Default diff | |
| commit_id | Yes | Commit SHA | |
| file_path | No | Diff one file only | |
| workspace | Yes | Project key (e.g., PROJ) | |
| repository | Yes | Repository slug | |
| context_lines | No | Default 3 | |
| exclude_patterns | No | ||
| include_patterns | No |