github_get_pull_requests
Retrieve and filter a repository's pull requests by state, base branch, or head branch. Use it to review open, closed, or all PRs via the GitHub API.
Instructions
獲取 Pull Request 列表
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": {
"repository": "<repository>"
},
"name": "github_get_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | 目標分支 | |
| head | No | 源分支 (格式: user:ref-name) | |
| state | No | Pull Request 狀態 | open |
| per_page | No | 每頁顯示數量 | |
| repository | Yes | 倉庫標識 (格式: owner/repo) |