List the review comments on a build's diffs or on a branch
list_commentsReview comments left on screens, each carrying its diffResultId, buildId/buildNumber and story (storyId, viewport, browser), author (human name or 'agent'), body, createdAt, and anchor - where on the candidate image it points: null (whole diff), {type:'point',x,y}, {type:'rect',x,y,w,h}, or {type:'path',points,closed}, all normalized 0..1 to the candidate image. Two ways to ask. By build (commitSha/prNumber/buildId): that build's own comments plus the open comments left on earlier builds of its branch (carried: true), because an open comment stays with its branch until someone resolves it. By branch: every open comment on that branch, whatever build it was left on. When you start or resume work on a git branch, call this with that branch (and projectId when you can reach several projects) and address each open comment from a person before you continue. A comment you left for the reviewer is omitted until a person replies in its thread; includeAgentNotes adds those.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Read every open comment on this git branch instead of resolving a build. | |
| buildId | No | Resolve this exact build id. | |
| prNumber | No | Resolve the latest build for this PR number. | |
| commitSha | No | Resolve the build for this git commit SHA. | |
| projectId | No | The project to look in (a projectId from list_projects). Needed only when you can access several projects; a buildId already names its project. | |
| includeAgentNotes | No | With branch: also include open comments you (an agent) left that no person has replied to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comments | Yes | ||
| openReviewComments | No | Present when open review comments are waiting on some branch of this project; read yours with list_comments. |