get_comments
Retrieve only the comments from a pull request. Use this when you specifically want to read the discussion and feedback comments without other activities like reviews or commits.
Instructions
Retrieve only the comments from a pull request. Use this when you specifically want to read the discussion and feedback comments without other activities like reviews or commits.
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_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prId | Yes | Pull request ID to get comments for. | |
| limit | No | Maximum number of activities to return per page (default: 25, max: 100). | |
| start | No | Page offset (0-based). Use nextPageStart from a previous response to fetch the next page. | |
| project | No | Bitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. | |
| fetchAll | No | When true, fetches all pages and returns the complete comment history. Recommended for PRs with many comments. | |
| repository | Yes | Repository slug containing the pull request. |