Comment on a build's diff
post_commentLeave a review comment on one of a build's changed-story diffs (resolve the build by commitSha/prNumber/buildId, target the diff by diffResultId from get_build/get_diff). The comment is authored as the agent. Optionally anchor it to a spot on the candidate image with anchor: omit or null for a whole-diff comment, {type:'point',x,y} to pin a point, {type:'rect',x,y,w,h} for a box, or {type:'path',points:[{x,y},...],closed} for a shape - all coordinates 0..1 normalized to the candidate image. side picks the pane ('after' the candidate, default; 'before' the baseline). Pass parentId (a root comment id from list_comments) to REPLY in that thread instead - a reply inherits the root's side and carries no anchor, so anchor/side are ignored. A new root comment is refused when a newer build exists on the branch (comment on the latest build); replies stay allowed. Requires the image comments feature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The comment text. | |
| side | No | Which pane: 'after' (candidate, default) or 'before' (baseline). Ignored on a reply. | |
| anchor | No | Where on the candidate image to pin it (0..1 normalized): omit/null = whole diff; {type:'point',x,y}; {type:'rect',x,y,w,h}; {type:'path',points,closed}. Ignored on a reply. | |
| buildId | No | Resolve this exact build id. | |
| parentId | No | Reply to this thread ROOT comment's id (from list_comments) instead of starting a new thread. | |
| prNumber | No | Resolve the latest build for this PR number. | |
| commitSha | No | Resolve the build for this git commit SHA. | |
| diffResultId | Yes | The diff result to comment on (from get_build/get_diff). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |