bb_list_pull_requests
List pull requests in a repository, filtering by state, source or destination branch, or author to locate specific PRs or map a branch name to its pull request number.
Instructions
List pull requests in a repository, optionally filtered by state, source or destination branch, or author. Use the source_branch filter to resolve a branch name to its PR number when the user names a branch instead of a PR.
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": "bb_list_pull_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum PRs to return | |
| state | No | PR state to list | OPEN |
| author | No | Filter by author nickname or display name substring | |
| repo_slug | No | Repository slug/name; defaults to the repo detected from the current directory's git remote | |
| workspace | No | Bitbucket workspace | |
| source_branch | No | Only PRs opened from this branch | |
| destination_branch | No | Only PRs targeting this branch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |