Delete Variant
delete_variantPermanently deletes the specified variant and all of its content and translations. Cannot be undone. Deleting the active variant promotes the newest remaining variant, which is returned as promotedVariant.
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": {
"projectId": "<projectId>",
"contentType": "<contentType>",
"variantId": "<variantId>",
"confirm": "<confirm>"
},
"name": "delete_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true: confirms the user explicitly asked to delete this variant. | |
| projectId | Yes | Project id (list_projects/get_project); design tools call it generationId. | |
| variantId | Yes | ||
| contentType | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |