List pull requests
list_pull_requestsList open pull requests for a repository as PR numbers and titles, paged up to 50 per page. Use it to find a PR branch before checking CI.
Instructions
Lists open pull requests of a repository as reported by its forge, as index (the PR number) and title, paged (up to 50 per page). To check CI for one, call list_pipelines with event=pull_request and the PR's branch, or get_pipeline with number="latest" and that branch. An empty list can also mean the forge does not support listing pull requests.
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": {
"instance": "<instance>",
"repo": "<repo>"
},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1). | |
| repo | Yes | Repository as "owner/name" (e.g. "acme/webapp") or a numeric Woodpecker repo id. | |
| instance | Yes | Woodpecker instance name. Configured instances: default. | |
| per_page | No | Results per page (default 50, max 50). |