Get Pull Request
get_pull_requestRetrieve details for a specific Bitbucket pull request, including comment statistics, full source and destination commit hashes, and participant review statuses.
Instructions
Get details for a specific pull request.
Args: repo_slug: Repository slug pull_request_id: Pull request ID workspace: Workspace name (optional, defaults to configured workspace)
Returns: Pull request details with comment statistics: - comment_stats: Object containing: - total (int): Total number of comments - resolved (int): Number of resolved comments - unresolved (int): Number of unresolved comments - source_commit / destination_commit (string or null): full 40-character hash of the PR head and of the destination branch tip, unlike the 12-character hashes elsewhere. null when the commit cannot be resolved (e.g. a deleted source branch, or a fork outside the allowed workspaces). Only this tool returns them. - participants[].state (string or null): "approved", "changes_requested" or null — the participant's current review status
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>",
"pull_request_id": "<pull_request_id>"
},
"name": "get_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_slug | Yes | ||
| workspace | No | ||
| pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |