Back to Tool Reference
MCP

mockup.get_generation

Return mockup generation status and the generated assets.

Effectread-onlyScopemockup:readPlanStarter+

Parameters

handlestringRequired

The task id returned by mockup.generate.

wait_secintegerDefault: 0

0 returns an instant snapshot. Positive values long-poll up to that many seconds and return when the mockups complete/fail or the timeout expires.

Returns

handlestring

The handle the call was made with.

status"pending" | "running" | "complete" | "failed"
progressnumber | null

Fractional progress 0.0-1.0 when known.

doneboolean

true once the work has finished, whether it completed or failed.

mockupsobject[]

Each: id, status, external_key, image_url, video_url, error, stage, progress.

urlstring | null

Page that opens these mockups in the app. Share this link rather than building one.

Request
json
{
  "name": "mockup.get_generation",
  "arguments": {
    "handle": "7503bcc2-516d-483e-b3d6-af275226601c",
    "wait_sec": 50
  }
}
Response
json
{
  "handle": "7503bcc2-516d-483e-b3d6-af275226601c",
  "resource_id": null,
  "status": "complete",
  "progress": 1.0,
  "done": true,
  "message": "",
  "error": "",
  "mockups": [
    {
      "id": "715d0de7-ba61-441a-9026-542c480b9ccb",
      "status": "complete",
      "external_key": "back_flat",
      "image_url": "https://cdn.vaybel.com/flat_mockups/e4a1c7b2-3f58-4c9d-a6e0-9b2d7f1c5a38_back_flat_5c1f0a7d.png",
      "video_url": null,
      "error": "",
      "stage": "Mockup ready",
      "progress": 1.0
    },
    {
      "id": "24b10117-0876-4f40-9ebf-c09109c7ea3d",
      "status": "complete",
      "external_key": "front_flat",
      "image_url": "https://cdn.vaybel.com/flat_mockups/e4a1c7b2-3f58-4c9d-a6e0-9b2d7f1c5a38_front_flat_5c1f0a7d.png",
      "video_url": null,
      "error": "",
      "stage": "Mockup ready",
      "progress": 1.0
    }
  ],
  "url": "https://vaybel.com/dashboard/launch-product/e4a1c7b2-3f58-4c9d-a6e0-9b2d7f1c5a38/mockups"
}