Edit a draft variant
variant_updateReplace a draft variant's contents with the given object. Only drafts can be edited; to change a live variant, create a new one and archive the old.
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>",
"variant_id": "<variant_id>",
"contents": "<contents>"
},
"name": "variant_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contents | Yes | The new contents, in the shape variant_create takes. | |
| surface_id | Yes | The surface id, from surface_list. | |
| variant_id | Yes | The variant id, from variant_list. |