Update pull request comment
update_pull_request_commentReplace an existing comment in an Azure DevOps pull request thread. Requires confirmation and proper permissions to apply the update.
Instructions
Replace a top-level or reply comment inside a pull request thread. Azure DevOps author and permission rules apply. 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>",
"threadId": "<threadId>",
"commentId": "<commentId>",
"content": "<content>",
"confirm": "<confirm>"
},
"name": "update_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. | |
| threadId | Yes | ||
| commentId | Yes | Comment ID inside the thread. | |
| repositoryId | Yes | Repository name or ID. | |
| pullRequestId | Yes | Pull request numeric ID. |