Create Card Builder style preset
card_builder_create_style_presetCreates a new reusable Card Builder style preset from CSS-style data and metadata, returning its unique ID for applying a consistent theme across multiple cards.
Instructions
Create a new reusable Card Builder style preset.
Sends data and the metadata fields to card_builder/style_presets/create,
which assigns a new id server-side (confirmed in upstream storage.py:
every create path generates a fresh uuid4) — repeating this call
creates a second, distinct preset rather than updating the first.
Use when: packaging a reusable set of style properties (e.g. a card
theme) to apply across multiple cards.
Not for: changing an existing preset — use
card_builder_update_style_preset.
Returns: the created style-preset dict, including its new id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | CSS-style configuration blob, shaped like a style category map (see card_builder_list_style_categories). | |
| name | Yes | Display name for the new preset, e.g. 'Dark Hero'. | |
| description | No | Free-text preset description. Empty string if omitted. | |
| extends_preset_id | No | Id of another style preset this one extends/inherits from. Omit for no inheritance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||