List pull requests
list_pull_requestsRetrieve and filter pull requests in a Forgejo or Gitea repository by owner and repo, using state, labels, sort order, and pagination.
Instructions
List 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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| repo | Yes | Repository name | |
| sort | No | ||
| limit | No | Results per page (default 30, max 100) | |
| owner | Yes | Repository owner (user or organization) | |
| state | No | ||
| labels | No | Label IDs |