Create variants
variant_createAdd variants to a surface, as DRAFT; activate them with variant_set_status. Returns the surface's full variant list.
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": {
"surface_id": "<surface_id>",
"variants": "<variants>"
},
"name": "variant_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variants | Yes | Each an object of field key to value, with the keys the surface's fields use. Optional is_control (one per segment) and segment_id. | |
| surface_id | Yes | The surface id, from surface_list. |