get_pull_request_commits
Retrieve commits for a pull request, with pagination support and optional field selection.
Instructions
List commits for a specific pull request. Returns the commits that are part of the pull request with pagination support.
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": {
"repository": "<repository>",
"prId": "<prId>"
},
"name": "get_pull_request_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID. | |
| limit | No | Maximum number of results to return (default: 25, max: 100). | |
| start | No | Start index for pagination (default: 0). | |
| fields | No | Comma-separated fields to return (dot notation for nested paths). Omit for a curated default; use '*all' for the full raw API response. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| repository | Yes | Repository slug. |