list_pull_requests
List pull requests in a BitBucket repository, filtering by state, workspace, or repository to track open requests or review history.
Instructions
List pull requests in a BitBucket repository.
Use this tool to see pull requests in a repository. By default, shows only open pull requests.
Args: repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace. state: Filter by state - 'OPEN', 'MERGED', 'DECLINED', or 'SUPERSEDED'. Default is 'OPEN'. limit: Maximum number of pull requests to return. Default 10.
Returns: JSON list of pull requests with their titles, authors, and status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| state | No | OPEN | |
| workspace | No | ||
| repository | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |