verify_ui
Judge a screenshot of the running UI. Paid.
You drive the browser; verifAIed judges what you got. Take a
screenshot of the change you just made, say what it was supposed to
do, and this returns a verdict — plus records it, so check_done
can hold the branch to it.
Two modes:
With
intent(recommended): checks one claim. "The error state now shows a Retry button" →pass/fail/unclear, with a confidence and the reasoning.unclearis a real answer, used when the screenshot doesn't show the region the claim is about — treat it as "screenshot the right thing and ask again", not as a pass.Without
intent: a rubric review (layout, hierarchy, legibility, consistency, obvious broken state) returningcleanorissueswith a defect list.
target attaches the verdict to one component as
path/to/File.tsx::ComponentName, which is what clears that
component's visually_unreviewed gap. A target that doesn't resolve
is not an error: the verdict is still recorded against the branch and
the response carries a warning saying so.
screenshot_base64 is the raw image bytes, base64-encoded (a
data: URL prefix is fine). PNG, JPEG, GIF or WebP; a viewport-sized
capture is plenty and anything over ~1.5MB of base64 is rejected with a
resize hint. Pass console_errors when you have them — a visual
defect and a console error are very often the same bug.
The screenshot is stored as session evidence: each call opens a one-moment session in the branch's ledger and attaches the image to it, so the Tests page can show the frame the verdict was about. The reasoning text is still the record — the picture is the receipt.
Failing an intent check creates an intent_mismatch gap; a changed
component with no verdict creates visually_unreviewed. Both
activate only once this branch has at least one verdict, so a repo that
doesn't use this tool never sees them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository": "<repository>",
"screenshot_base64": "<screenshot_base64>"
},
"name": "verify_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| intent | No | ||
| target | No | ||
| viewport | No | ||
| repository | Yes | ||
| console_errors | No | ||
| screenshot_base64 | Yes |