ado_set_pr_vote
Cast a vote on a pull request in Azure DevOps to approve, reject, or set other review statuses.
Instructions
Cast a vote on a pull request (approve, approve-with-suggestions, reset, wait-for-author, reject). Defaults to the caller.
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": {
"repoId": "<repoId>",
"prId": "<prId>",
"vote": "<vote>"
},
"name": "ado_set_pr_vote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID | |
| vote | Yes | Vote to cast | |
| repoId | Yes | Repository name or ID | |
| project | No | Project name or ID (defaults to ADO_DEFAULT_PROJECT) | |
| reviewerId | No | Reviewer identity ID (defaults to the caller) |