create_mr_discussion
Add inline comments on specific lines of a merge request diff to facilitate code review discussions.
Instructions
MR 인라인 코멘트(Discussion) 작성
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>",
"mr_iid": "<mr_iid>",
"body": "<body>",
"path": "<path>",
"new_line": "<new_line>",
"base_sha": "<base_sha>",
"head_sha": "<head_sha>",
"start_sha": "<start_sha>"
},
"name": "create_mr_discussion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | 코멘트 내용 | |
| path | Yes | 대상 파일 경로 (new_path) | |
| mr_iid | Yes | MR iid | |
| base_sha | Yes | diff_refs.base_sha | |
| head_sha | Yes | diff_refs.head_sha | |
| instance | No | 대상 GitLab 인스턴스명 (생략 시 default) | |
| new_line | Yes | 대상 라인 번호 | |
| start_sha | Yes | diff_refs.start_sha | |
| project_id | Yes | 프로젝트 ID |