GitHub pull requests
github_prsList pull requests in a GitHub repository with filters for state, base or head branch, sort field, and direction to review or triage changes.
Instructions
List pull requests with state, base, head, sort, and direction filters.
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": {
"repo": "<repo>"
},
"name": "github_prs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch filter | |
| head | No | Head branch filter, owner:branch | |
| page | No | Page number, starting at 1 | |
| repo | Yes | Repository in owner/name form | |
| sort | No | Sort field | |
| fresh | No | Bypass the local cache | |
| state | No | Pull request state, default open | |
| per_page | No | Items per page, default 20 | |
| direction | No | Sort direction |