list_pull_requests
List pull requests in a GitHub repository with filters for state, branch, and sorting to find the PRs you need.
Instructions
List pull requests in a GitHub repository. Docs: https://docs.github.com/en/rest/pulls/pulls#list-pull-requests
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 | Filter by base branch name | |
| head | No | Filter by head user/org and branch, e.g. "octocat:feature-branch" | |
| page | No | ||
| repo | Yes | Repository name | |
| sort | No | Field to sort results by | |
| owner | Yes | Repository owner (user or organization login) | |
| state | No | Filter by pull request state (defaults to open) | |
| per_page | No | ||
| direction | No | Sort direction |