List branches
list_branchesList branch names for a Woodpecker repository as reported by its forge, with pagination up to 50 per page. An empty result may mean the forge cannot list branches.
Instructions
Lists branch names of a repository as reported by its forge (Gitea, Forgejo, GitHub, GitLab, ...), paged (up to 50 per page). An empty list can also mean the forge does not support listing branches.
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_branches"
}
}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). |