Accept every changed story in a build
accept_buildAccept ALL changed stories in one build at once (resolved by commitSha/prNumber/buildId), advancing each story's per-branch baseline so the next build is clean. This is the bulk form of review_diff='accept' — use it when you've decided the whole build's changes are intended. It accepts every changed story, including stories that already have a prior denied review; failed stories are unaffected. Returns the build triage after accepting (first page of changed stories, each now showing decision='accepted'; page the rest with list_build_stories if changedNextCursor is set). Refused, with nothing accepted, while any changed story has an unresolved review comment, including one a person left on an earlier build of the branch: the error names those stories; read them with list_comments, address each note, resolve_comment its thread, then accept again. Also refused, with nothing accepted, on a build a newer build has superseded (with prNumber, a newer build of that PR; otherwise a newer build on its branch), on a build that PR doesn't show, on a build that has to be rebuilt against its PR's base, when prNumber names a PR from another branch, and when the build's branch has several open PRs and no prNumber says which one the accept is for; each error says which and what to do.
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": "accept_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 |
|---|---|---|---|
| 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 | ||
| 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. |