Delete pull request comment
delete_pull_request_commentDelete a pull request comment or reply after confirmation, respecting Azure DevOps author and permission rules.
Instructions
Soft-delete 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>",
"confirm": "<confirm>"
},
"name": "delete_pull_request_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to perform the mutation. | |
| project | No | Project name or ID. Omit to use AZURE_DEVOPS_DEFAULT_PROJECT. | |
| threadId | Yes | ||
| commentId | Yes | Exact comment ID inside the thread to delete. | |
| repositoryId | Yes | Repository name or ID. | |
| pullRequestId | Yes | Pull request numeric ID. |