Set pull request vote
set_pull_request_voteCast or update your vote on an Azure DevOps pull request by choosing approve, reject, wait, or suggest changes. Confirm the action to record your review decision.
Instructions
Set the authenticated user's Azure DevOps pull request vote. 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>",
"vote": "<vote>",
"confirm": "<confirm>"
},
"name": "set_pull_request_vote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vote | Yes | ||
| confirm | Yes | Must be true to perform the mutation. | |
| 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. |