Back to Tool Reference
MCP

design.get_generation

Return design-generation status and result fields.

Effectread-onlyScopedesign:readPlanStarter+

Parameters

handlestringRequired

The task id returned from design.generate.

wait_secintegerDefault: 0

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

image_viewstringDefault: "product"

One of "product", "artwork"

product returns the artwork shown on the garment; artwork returns the raw print artwork. Either way the call only selects images already saved and generates nothing.

Returns

handlestring

The handle the call was made with.

resource_idstring | null

Same as design_id once known.

status"pending" | "running" | "complete" | "failed"
doneboolean

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

design_idstring | null

Design UUID. null until the design exists.

progressnumber | null

Fractional progress 0.0-1.0 when known.

stagestring
product_imagesobject[]

Saved product previews (placement, image_url), front first. Empty until a preview has been saved.

image_viewstring

The requested gallery view.

image_urlstring | null

Legacy raw artwork URL. Prefer product_images.

imagesobject[]

Every side's raw artwork, each with placement (for example front or back) and image_url.

urlstring | null

Page that opens the design in the app. Link to it rather than building a URL.

errorstring

Failure message when status is failed.

next_actionobject | null

null until the design is complete. Then tool (design.get) and the arguments to call it with, which returns the saved design and its gallery.

Request
json
{
  "name": "design.get_generation",
  "arguments": {
    "handle": "29e217c5-624f-4775-9467-ce9433aeda4f",
    "wait_sec": 50
  }
}
Response
json
{
  "handle": "29e217c5-624f-4775-9467-ce9433aeda4f",
  "resource_id": "7c3e9a51-6d2b-4f80-b1c4-5a8e0d2f6b93",
  "category": "design",
  "task_type": "generate_design",
  "status": "complete",
  "progress": 1.0,
  "done": true,
  "message": "Design generated",
  "error": "",
  "design_id": "7c3e9a51-6d2b-4f80-b1c4-5a8e0d2f6b93",
  "stage": "Design generated",
  "image_url": "https://cdn.vaybel.com/cropped_placements/d57f62ea-60d3-4291-aca8-49af0a352b98_front.png",
  "images": [
    {
      "placement": "front",
      "image_url": "https://cdn.vaybel.com/cropped_placements/d57f62ea-60d3-4291-aca8-49af0a352b98_front.png"
    }
  ],
  "product_images": [
    {
      "placement": "front",
      "image_url": "https://cdn.vaybel.com/images/565f4db6-1a3a-48fd-9b2e-9cec28d9729e.png"
    },
    {
      "placement": "back",
      "image_url": "https://cdn.vaybel.com/images/befb3ae4-cfb9-46d5-9825-40553930be2e.png"
    }
  ],
  "image_view": "product",
  "url": "https://vaybel.com/dashboard/launch-product/7c3e9a51-6d2b-4f80-b1c4-5a8e0d2f6b93",
  "next_action": {
    "tool": "design.get",
    "arguments": {
      "design_id": "7c3e9a51-6d2b-4f80-b1c4-5a8e0d2f6b93",
      "image_view": "product"
    }
  }
}