Create CSS custom property
card_builder_create_css_custom_propertyRegister a typed CSS @property for card styles so styles can reference animatable variables, such as a themeable accent color, by name.
Instructions
Register a new CSS custom property (@property) for use in card styles.
Sends the four fields to card_builder/css_custom_properties/create,
which assigns a new id server-side (confirmed in upstream
storage.py: every create path generates a fresh uuid4) — repeating
this call registers a second, distinct property rather than updating
the first.
Use when: defining an animatable/typed CSS variable (e.g. a themeable
accent color) that card styles can reference by name.
Returns: the created CSS-custom-property dict, including its new id.
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": {
"name": "<name>",
"syntax": "<syntax>",
"initial_value": "<initial_value>"
},
"name": "card_builder_create_css_custom_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | CSS custom property name, e.g. '--card-accent-color' (with the leading '--'). | |
| syntax | Yes | CSS @property syntax descriptor, e.g. '<color>' or '<length>'. | |
| inherits | No | Whether the property inherits from parent elements, per the CSS @property spec. Defaults to false. | |
| initial_value | Yes | Initial value matching `syntax`, e.g. '#2196f3' for a <color>. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||