pull-requests
List pull requests for a Bitbucket repository or get details for one by providing its ID. Filter by state and paginate results.
Instructions
List pull requests for a repository, or get details for a single pull request when pr_id is provided.
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_slug": "<repo_slug>"
},
"name": "pull-requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | (list only) Page number or opaque next page URL | |
| pr_id | No | Pull request ID. If provided, returns a single PR; otherwise lists. | |
| state | No | (list only) Filter by state. Accepts a single state or an array of states: OPEN, MERGED, DECLINED, SUPERSEDED | |
| pagelen | No | (list only) Items per page (10-100, default 10) | |
| repo_slug | Yes | Repository slug/name | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. |