Upload SmartUI Screenshots
smartui_upload_screenshotsUpload PNG or JPEG screenshots to a SmartUI project as a new build, from source_urls (public http or https URLs, fetched by the server, at most 20 images of 10 MB each) or, only when the server runs locally over stdio, from file_paths. Each call creates a new build, and its screenshots count toward the account's SmartUI screenshot usage. mark_baseline=true makes the build the project baseline, replacing the current one. Returns build_id and the stored screenshot names. Uploaded screenshots get no comparison_id; review them by ss_id.
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>"
},
"name": "smartui_upload_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build_name | No | Name for the new build (optional) | |
| file_paths | No | Absolute local image paths (.png, .jpg, .jpeg). Only usable when the MCP server runs locally over stdio; the hosted server cannot read your files, so use source_urls there. | |
| project_id | Yes | SmartUI project id, from smartui_list_projects; the project token is resolved by the server | |
| source_urls | No | Public http or https image URLs, fetched by the server (max 20, 10 MB each). Private and internal addresses are refused. | |
| mark_baseline | No | Make this build the project baseline, replacing the current one | |
| screenshot_name | No | Name for the screenshot instead of the file or URL name, with or without an extension; only valid when uploading exactly one image. The upload API requires an image extension, so a name without one is sent and stored with .png or .jpg added ("home" becomes "home.png"). It binds to a baseline screenshot of the stored name, so it cannot bind to SDK or CLI baselines, whose names have no extension; the result warns when the stored name differs from the one given. |