list_issues_and_prs
Retrieve issues and pull requests from a GitHub repository with filters for state, labels, sort order, and pagination to track project work.
Instructions
List issues and pull requests in a repository.
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": "list_issues_and_prs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| repo | Yes | Repository name | |
| sort | No | Sort field | updated |
| owner | No | GitHub user or organization name (optional if GITHUB_OWNER is set) | |
| state | No | State of issues/PRs | open |
| labels | No | Comma-separated list of label names | |
| per_page | No | Results per page (max 100) | |
| direction | No | Sort direction | desc |