add_comment_inline
Add an inline comment (to specific lines) to the diff of a pull request for code review, feedback, questions, or discussion.
Instructions
Add an inline comment (to specific lines) to the diff of a pull request for code review, feedback, questions, or discussion. Use this to provide review feedback, ask questions about specific changes, suggest improvements, or participate in code review discussions. Supports threaded conversations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number in the file to attach the comment to (1-based). | |
| prId | Yes | Pull request ID to comment on. | |
| text | Yes | Comment text content. Supports Markdown formatting for code blocks, links, and emphasis. | |
| state | No | Comment state. Use PENDING to create a draft comment visible only to you until you publish the review. Defaults to OPEN. | |
| project | No | Bitbucket project key. If omitted, uses BITBUCKET_DEFAULT_PROJECT environment variable. | |
| filePath | Yes | Path to the file in the repository where the comment should be added (e.g., "src/main.py", "README.md"). | |
| lineType | Yes | Type of change the comment is associated with: ADDED for additions, REMOVED for deletions. | |
| parentId | No | ID of parent comment to reply to. Omit for top-level comments. | |
| severity | No | Comment severity. Use BLOCKER to create a task instead of a regular comment. Defaults to NORMAL. | |
| repository | Yes | Repository slug containing the pull request. |