Pull request commits
get_pull_request_commitsList all commits in a Bitbucket pull request. Provide the repository slug and pull request ID to retrieve the commits.
Instructions
Lists the commits that make up the PR.
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": "<repo>",
"id": "<id>"
},
"name": "get_pull_request_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Pull request number. | |
| repo | Yes | Repository repo_slug. | |
| workspace | No | Bitbucket workspace. Omit to use BITBUCKET_WORKSPACE. |