get_commit_diff
Retrieve the diff of a specific commit relative to its parent, with optional file filtering and line limits.
Instructions
단일 커밋 변경 내용 조회 (parent 기준)
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": {
"project_id": "<project_id>",
"sha": "<sha>"
},
"name": "get_commit_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | Yes | 커밋 SHA | |
| instance | No | 대상 GitLab 인스턴스명 (생략 시 default) | |
| file_path | No | 특정 파일만 조회 | |
| max_lines | No | 파일당 최대 라인 (기본 1000) | |
| project_id | Yes | 프로젝트 ID |