Approve SmartUI Screenshots
smartui_approve_screenshotApprove screenshots in a SmartUI build. Pass comparison_ids, ss_ids or all_matching. Every id is checked against the build before the write, and statuses are read back afterwards, so updated[] and failed[] report what actually changed. There is no undo; a later approve or reject overwrites the status. The result also reads back the project's baseline state: in projects with a pinned baseline build, approving does not move the pin; in projects that resolve the baseline per branch (CLI, Storybook, Omni), a fully approved build becomes the baseline for builds created on that branch afterwards.
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": {
"project_id": "<project_id>",
"build_id": "<build_id>"
},
"name": "smartui_approve_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ss_ids | No | Screenshot ids (ss_id) to approve, from smartui_list_comparisons | |
| build_id | Yes | Build id the screenshots belong to | |
| project_id | Yes | SmartUI project id, from smartui_list_projects | |
| all_matching | No | Approve every screenshot in the build with this status | |
| comparison_ids | No | Comparison ids to approve, from smartui_list_comparisons (rows with comparison_id null need ss_ids) |