list_pull_requests
Retrieve pull requests from an Azure DevOps repository, filtering by status, creator, reviewer, branch, and pagination.
Instructions
List pull requests in a repository
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>",
"top": "<top>"
},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Maximum number of pull requests to return (default: 10) | |
| skip | No | Number of pull requests to skip for pagination | |
| status | No | Filter by pull request status | |
| creatorId | No | Filter by creator ID (must be a UUID string) | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| reviewerId | No | Filter by reviewer ID (must be a UUID string) | |
| repositoryId | Yes | The ID or name of the repository | |
| sourceRefName | No | Filter by source branch name | |
| targetRefName | No | Filter by target branch name | |
| organizationId | No | The ID or name of the organization (Default: mycompany) |