Get per-story diff detail with image URLs
get_diffPer-story diff detail for a build (resolved by commitSha/prNumber/buildId). Returns diff metrics and presigned URLs for the baseline, candidate, and diff PNGs. By default they stay valid for one to two hours: download them to a file now, do not link them anywhere a person will open later. To put before/after images in a PR comment, pass embed: true together with the storyId of each story going into the comment: those URLs last 7 days and render in GitHub (without storyId a whole-build read mints a 7-day link for every changed story, so keep embed for the few you will post). They also stop rendering after 7 days, so link the build's dashboard page too, as a full URL on the host this MCP server is served from: /builds/, with buildId from get_build. Defaults to the changed stories; pass storyId for one specific story. When that storyId is an UNCHANGED story it returns its baseline (diffResultId null, changed false, the baseline URL as both baselineUrl and candidateUrl) - the story rendered identical to baseline, so there is no before/after pair to embed for it. Use render_diff_image instead when you want the actual pixels inline for a vision model, not a URL. When AI review is on, each diff carries the judge's call: aiVerdict (intended|regression), aiConfidence, aiSummary (what changed), aiReasoning, and aiFlagReason; all null when AI review didn't run for it. Each diff also carries comments {total, unresolved} for THAT story - unresolved>0 means an open review note; read the thread with list_comments before accepting.
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_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| embed | No | true: return URLs that stay valid for 7 days, for embedding in a GitHub PR comment. Default: URLs valid for one to two hours, for downloading now. | |
| buildId | No | Resolve this exact build id. | |
| storyId | No | Limit to one story 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. | |
| diffs | Yes | ||
| openReviewComments | No | Present when open review comments are waiting on some branch of this project; read yours with list_comments. |