compare_refs
Compare differences between two Git references (branches, tags, or commits) in a GitLab project. Specify project ID and source/target refs to view the diff.
Instructions
두 ref 간 diff 비교 (브랜치/태그/커밋)
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>",
"from": "<from>",
"to": "<to>"
},
"name": "compare_refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 대상 ref (브랜치/태그/SHA) | |
| from | Yes | 기준 ref (브랜치/태그/SHA) | |
| instance | No | 대상 GitLab 인스턴스명 (생략 시 default) | |
| straight | No | 직선 비교 여부 | |
| file_path | No | 특정 파일만 조회 | |
| max_lines | No | 파일당 최대 라인 (기본 1000) | |
| project_id | Yes | 프로젝트 ID |