create_mr_discussion
Start a discussion on a merge request in GitFlic. Add a general comment or specify line and path details to comment on specific code changes.
Instructions
Start a new discussion on a merge request. For a general comment, only provide the message. For a line-level code comment, also provide newLine, oldLine, newPath, and oldPath — all four fields are required together for code comments.
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": {
"owner": "<owner>",
"project": "<project>",
"mr_id": "<mr_id>",
"message": "<message>"
},
"name": "create_mr_discussion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_id | Yes | Merge request local ID | |
| owner | Yes | Project owner alias | |
| message | Yes | Discussion message | |
| newLine | No | New file line number (for code comment; requires all line/path fields) | |
| newPath | No | New file path (for code comment) | |
| oldLine | No | Old file line number (for code comment) | |
| oldPath | No | Old file path (for code comment) | |
| project | Yes | Project alias |