pr-comments
List comments on a Bitbucket pull request or retrieve details for a single comment by providing its comment ID.
Instructions
List comments on a pull request, or get details for a single comment when comment_id is provided.
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>",
"pr_id": "<pr_id>"
},
"name": "pr-comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | (list only) Page number or opaque next page URL | |
| pr_id | Yes | Pull request ID | |
| pagelen | No | (list only) Items per page (10-100, default 10) | |
| repo_slug | Yes | Repository slug/name | |
| workspace | No | Bitbucket workspace name. Falls back to BITBUCKET_WORKSPACE env var if not provided. | |
| comment_id | No | Comment ID. If provided, returns a single comment; otherwise lists. |