Create pull request comment
create_pull_request_commentPost a markdown comment on an Azure DevOps pull request by specifying repository, pull request ID, and content. Requires confirmation to execute.
Instructions
Create a top-level pull request comment. Requires write tools and confirm=true.
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": {
"repositoryId": "<repositoryId>",
"pullRequestId": "<pullRequestId>",
"content": "<content>",
"confirm": "<confirm>"
},
"name": "create_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to perform the mutation. | |
| content | Yes | Markdown comment body. | |
| project | No | Project name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT. | |
| repositoryId | Yes | Repository name or ID. | |
| pullRequestId | Yes | Pull request numeric ID. |