Check design snapshot
check_design_snapshotVerifies an uploaded design snapshot: the object must exist and be non-empty, self-contained HTML within the size limit. Returns { ok, previewUrl, sizeBytes, needsConfirmation, message }. needsConfirmation is always true for a snapshot: a snapshot is a static capture we cannot verify against the user's config, so show the user previewUrl and get their OK that it is the exact version and state they want tested (the right start page, mode and any saved toggles/defaults) before launching — never skip this. A missing, empty, oversized or non-HTML file returns an error; re-upload and check again. After the user confirms: propose_usability_test(uploadId) for a new test, or relaunch_usability_test(projectId, uploadId) to re-test an existing project.
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": {
"uploadId": "<uploadId>"
},
"name": "check_design_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Always true when returned (a failed check throws a coded error). | |
| message | No | User-facing status message the agent relays. | |
| sizeBytes | No | The hosted object's size in bytes. | |
| previewUrl | No | Public URL to open the hosted design. | |
| needsConfirmation | No | Always true for a hosted snapshot: show the user the preview and confirm it is the intended version/state before proposing. |