List pull requests
list_pull_requestsRetrieve pull requests from a GitHub repository, filtered by state and target branch, to review open, closed, or all PRs with sorting and paging.
Instructions
List pull requests in a repository. Filter by state and target branch.
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Only PRs targeting this branch, e.g. 'main' | |
| repo | Yes | Repository name, e.g. 'spring-boot' | |
| sort | No | created | |
| limit | No | Number of results to return (1-100, default 20) | |
| owner | Yes | Repository owner (user or organization), e.g. 'spring-projects' | |
| state | No | open | |
| offset | No | Number of results to skip, for paging (default 0) | |
| direction | No | desc |