Get what changed in a UI Verify build
get_buildTriage one build, resolved by commitSha, prNumber, or buildId (exactly one). Returns the gate verdict (gateStatus reads failed while a change is denied; each story's decision says which) and counts (total/changed/failed/unchanged), then the FIRST page (25) of the changed stories (story id, viewport, % pixels changed, review decision, the AI verdict aiVerdict=intended|regression + aiConfidence, and for a regression the judge's one-line aiFlagReason=what-looks-unintended, when AI review is on, and the story's own review-comment tally comments {total, unresolved}) and the first page of failed stories (failedStories[].kind is render when the story produced no frame, interaction when it rendered and its play() assertion threw, or test when its Playwright, Vitest or Bun test failed in the uploaded run; failedStories[].error is the message's first line, errorTruncated marks the ones that carried more). When AI review ran, aiReview tallies how many changes look like regressions vs intended, and the changed list is ordered likely-regressions-first. changedNextCursor / failedNextCursor are non-null when there are more than 25: page the rest with list_build_stories. counts.unchanged is how many stories did NOT change and have a baseline - this triage call does NOT list them (keeps the response lean); call list_build_stories status=unchanged to browse them (e.g. to confirm a passed build's stories are 'identical to baseline'). comments is the build-wide review-comment tally {total, unresolved}: unresolved>0 means a designer/QA (or another agent) left an open note on a story - read it with list_comments BEFORE you accept. No image URLs here - call get_diff or render_diff_image for pixels. A build that rendered every story because its upload had no dependency graph carries noGraph: tell your user its why and apply its fix to their CI. A blocked build carries blocked: relay its message (or, on the demo project, its headline and nextSteps) to your user; do not retry the build.
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": "get_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when this is UI Verify's demo project rather than one of yours; says how to set up your own. | |
| branch | Yes | ||
| counts | Yes | ||
| status | Yes | ||
| blocked | Yes | Why a blocked build was paused and what to do next; null for any other build. | |
| buildId | Yes | ||
| noGraph | No | Present when every story or test rendered because the upload had no usable dependency graph. Tell your user its `why`, and apply its `fix` to their CI so later builds render only what a change affects. | |
| aiReview | Yes | ||
| comments | No | Absent on UI Verify's demo project, whose review comments only its team sees. | |
| prNumber | Yes | ||
| warnings | No | Why this build's baselines weren't picked by its branch's commits, and what fixes it. | |
| commitSha | Yes | ||
| createdAt | Yes | ||
| gateTitle | No | The verdict's headline, e.g. 'Needs a build of this PR against develop', when the build has one. | |
| gateStatus | Yes | ||
| failedStories | Yes | ||
| changedStories | Yes | ||
| failedNextCursor | Yes | ||
| autoAcceptChanges | Yes | ||
| changedNextCursor | Yes | ||
| openReviewComments | No | Present when open review comments are waiting on some branch of this project; read yours with list_comments. | |
| pendingWithoutDiff | No | Keys the gate counts as pending that have no diff to review: why='change' is accepted by accept_build, why='needs-build' clears only with a new build. |