getPullRequests
List pull requests for a Bitbucket repository, filtered by state and paginated, so you can review open, merged, or declined PRs in a workspace.
Instructions
List pull requests for 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": {
"repoSlug": "<repoSlug>"
},
"name": "getPullRequests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Fetch all pages (capped at 1000) | |
| page | No | Page number (1-based) | |
| state | No | Filter by pull request state | |
| pagelen | No | Number of items per page (default: 10, max: 100) | |
| repoSlug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace name (uses default if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |