List pull requests
devops_pull_request_listList repository pull requests with filters for status, target branch, creation or closing time, and paging; use returned prId for detail lookups.
Instructions
List pull requests of a repository, optionally filtered by status, target branch, and a time range. 'min_time'/'max_time' filter on the creation time by default, or on the closing time when 'time_range_type' is 'closed' (completed pull requests only). Supports paging with 'top' and 'skip'. Use 'devops_pull_request_get' with a returned 'prId' for details.
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": {
"repository_id": "<repository_id>"
},
"name": "devops_pull_request_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of pull requests to return. | |
| skip | No | Number of pull requests to skip (for paging). | |
| status | No | Filter by status: active, abandoned, completed, all, or notSet. The server default is active. | |
| max_time | No | Upper time bound (ISO 8601 date/time), applied as described by time_range_type. | |
| min_time | No | Lower time bound (ISO 8601 date/time), applied as described by time_range_type. | |
| repository_id | Yes | Repository name or ID. | |
| target_ref_name | No | Filter by target branch, e.g. 'refs/heads/main'. | |
| time_range_type | No | What min_time/max_time refer to: 'created' (default; creation time) or 'closed' (closing time; requires status completed). | created |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |