Create pull request comment
devops_pull_request_create_commentCreates a new comment thread on a specified Azure DevOps pull request, optionally attached to a file and line for inline review feedback.
Instructions
Create a new thread with initial comment in the specified pull request.
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": {
"repository_id": "<repository_id>",
"pull_request_id": "<pull_request_id>",
"comment_content": "<comment_content>"
},
"name": "devops_pull_request_create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | File path relative to the root of the repository. | |
| line_number | No | Optional 1-based line number for an inline comment. | |
| repository_id | Yes | Repository name or ID. | |
| comment_content | Yes | The text content or markdown of the comment. | |
| pull_request_id | Yes | Pull request ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |