suggest_code_change
Add a code suggestion as a comment to a specific file line in a Bitbucket pull request to propose changes.
Instructions
Add a code suggestion comment to a file in a pull request
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>",
"filePath": "<filePath>",
"line": "<line>",
"suggestedCode": "<suggestedCode>"
},
"name": "suggest_code_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Bitbucket project key | |
| repository | Yes | Repository slug | |
| prId | Yes | Pull request ID | |
| filePath | Yes | Path to the file in the repository | |
| line | Yes | Line number to comment on | |
| lineType | No | Type of line (default is CONTEXT) | |
| message | No | Comment message explaining the suggestion (optional) | |
| suggestedCode | Yes | The suggested code | |
| parentId | No | Parent comment ID for replies |