GitHub (read-only): pull request read
github_readonly.pull_request_readRead information from a GitHub pull request that the user has access to, such as its description, changed files, review comments, or status. Requires a GitHub integration connected by the user.
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": {
"method": "<method>",
"owner": "<owner>",
"repo": "<repo>",
"pullNumber": "<pullNumber>"
},
"name": "github_readonly.pull_request_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for paginated results (default: 1). | |
| repo | Yes | Repository name to query. | |
| after | No | Cursor for pagination, used only by the get_review_comments method. Pass the endCursor from the previous page's PageInfo to fetch the next page. | |
| owner | Yes | Repository owner (organization or GitHub username). | |
| method | Yes | Retrieval mode: 'get' (metadata), 'commits', 'files', 'reviews', 'comments', 'diff', 'status', 'check_runs'. | |
| perPage | No | Results per page for pagination (min 1, max 100) | |
| pullNumber | Yes | Pull request number |