list_pull_requests
Retrieve pull requests from a GitHub repository, filtering by state or branch to identify relevant PRs.
Instructions
List pull requests in a repo, filterable by state and 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 | Filter by base branch, e.g. main | |
| head | No | Filter by head branch, e.g. owner:branch | |
| repo | Yes | Repository name | |
| limit | No | ||
| owner | Yes | Repository owner (user or org) | |
| state | No | open |