GitHub pull requests
github_prsList and filter GitHub pull requests by state, base or head branch, sort field, and direction, returning PR summaries and pagination details.
Instructions
List pull requests with state, base, head, sort, and direction filters. Returns {items[{number, title, state, draft, author, base, head, updated_at, html_url}], page, per_page, has_more, next_page}.
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: created, updated, popularity, or long-running | |
| fresh | No | Bypass the local cache | |
| state | No | Pull request state, default open | |
| per_page | No | Items per page, 1-100, default 20 | |
| direction | No | Sort direction: asc or desc |