Get what this PR does to the UI vs its base branch
get_pr_changesetThe cumulative 'this PR vs base' visual changeset (resolved by commitSha/prNumber/buildId) - what the whole PR does to the UI versus the branch it merges into, INDEPENDENT of what is left to review on the latest build. Unlike get_build (this commit vs the branch's own accepted baseline), this survives in-PR accepts: a story accepted mid-PR still shows under changed with status=accepted, so it answers 'what did this PR change' even after the gate reads clean. Returns base (the branch it merges into), counts {new,changed,removed,unchanged}, and the first page of new + changed + removed stories (storyId, title, name, kind, review status, aiVerdict). removed lists stories that HAD a baseline on the base branch but are gone from this PR's head (a deletion - otherwise invisible; each carries lastBuildId, the build that rendered its now-orphaned baseline). newNextCursor / changedNextCursor / removedNextCursor page the rest with list_pr_stories. No image URLs - fetch pixels by storyId with get_diff / render_diff_image.
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_pr_changeset"
}
}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 |
|---|---|---|---|
| new | Yes | ||
| base | Yes | ||
| note | No | Present when this is UI Verify's demo project rather than one of yours; says how to set up your own. | |
| counts | Yes | ||
| changed | Yes | ||
| removed | Yes | ||
| warnings | No | Why this build's baselines weren't picked by its branch's commits, and what fixes it. | |
| needsBuild | No | Set when UI Verify has no summary of this build yet: re-run the PR's CI job, then read it again. | |
| newNextCursor | Yes | ||
| changedNextCursor | Yes | ||
| removedNextCursor | Yes | ||
| openReviewComments | No | Present when open review comments are waiting on some branch of this project; read yours with list_comments. |