list_pull_requests
Retrieve pull requests from a Bitbucket repository with filtering by state and pagination controls.
Instructions
List Pull Requests for a repository on Bitbucket Cloud.
Args: repo_slug: Repository slug (name) state: PR state filter - OPEN, MERGED, DECLINED, SUPERSEDED, or ALL (default: OPEN) workspace: Bitbucket workspace (optional if configured) page: Page number for pagination (default: 1) pagelen: Number of results per page, max 50 (default: 25)
Returns: List of PRs with their details
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": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| state | No | OPEN | |
| workspace | No | ||
| page | No | ||
| pagelen | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||