Save style presets
styles_putFree. REPLACES the whole list of style presets, so send the complete list you want (from styles_get, changed): a partial list deletes the rest. At most 5, unique ids. A Premium voice is removed on save. It reads the saved list first and refuses if that read fails, and when a list is already saved it needs expected_updated_at (the updated_at from styles_get) so it never overwrites a newer change.
Args: presets: the full list, max 5, each {id, name, look:{preset, prompt}, voice, captions, aspect, music_genre, length_s, watermark_key}. expected_updated_at: updated_at from styles_get.
Returns: {ok, updated_at}. Errors: conflict (changed since you read it: styles_get again), conflict_unchecked.
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": {
"presets": "<presets>"
},
"name": "styles_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| presets | Yes | ||
| expected_updated_at | No |