Back to Tool Reference
MCP

virtual_model.get_generation

Return virtual-model generation status and the resulting models.

Effectread-onlyScopevirtual_model:readPlanStarter+

Parameters

handlestringRequired

The task id returned by virtual_model.generate.

wait_secintegerDefault: 0

0 returns an instant snapshot. Positive values long-poll up to that many seconds and return when generation completes/fails 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.

virtual_modelsobject[]

The audience's models and their statuses (same shape as virtual_model.list rows).

Request
json
{
  "name": "virtual_model.get_generation",
  "arguments": {
    "handle": "09714570-805e-4883-ab65-07da921192c9",
    "wait_sec": 50
  }
}
Response
json
{
  "handle": "09714570-805e-4883-ab65-07da921192c9",
  "resource_id": "09714570-805e-4883-ab65-07da921192c9",
  "category": "virtual_model",
  "task_type": "generate_virtual_models",
  "status": "complete",
  "progress": 1.0,
  "done": true,
  "message": "Models ready",
  "error": "",
  "virtual_models": [
    {
      "id": "1b3d5f79-a8c0-4e2a-b4d6-9f1a3c5e7b02",
      "audience_key": "night_shift_creatives",
      "audience_label": "Night-Shift Creatives",
      "gender": "men",
      "ethnicity": "Latino",
      "age": 27,
      "status": "CREATED",
      "image_url": "https://cdn.vaybel.com/virtual_models/1b3d5f79-a8c0-4e2a-b4d6-9f1a3c5e7b02_front.png"
    },
    {
      "id": "a7c9e1b3-5d4f-4a60-8e2c-0b6d8f2a4c84",
      "audience_key": "night_shift_creatives",
      "audience_label": "Night-Shift Creatives",
      "gender": "women",
      "ethnicity": "Latina",
      "age": 26,
      "status": "CREATED",
      "image_url": "https://cdn.vaybel.com/virtual_models/a7c9e1b3-5d4f-4a60-8e2c-0b6d8f2a4c84_front.png"
    }
  ],
  "virtual_model_ids": [
    "1b3d5f79-a8c0-4e2a-b4d6-9f1a3c5e7b02",
    "a7c9e1b3-5d4f-4a60-8e2c-0b6d8f2a4c84"
  ]
}