List a repository's GitHub pull requests
list_pull_requestsList a repository's pull requests newest first through GitHub CLI so you can select one to start a PR review; requires an authenticated gh.
Instructions
Lists the pull requests of a repository through the GitHub CLI, newest first, so you can pick one to review with start_review(mode="pr", pr=NUMBER). Requires an authenticated gh.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | owner/repo when the PRs live in another repository than the checkout. | |
| limit | No | Maximum entries. Default 20. | |
| state | No | Which PRs to list: open (default), closed, merged or all. | |
| repoPath | No | Repository path. Defaults to the current working directory. |