Create card from template
card_builder_make_template_cardCreate a saved Card Builder card from a built-in template in one call, resolving the template and assigning a new card ID. Use it to skip separate preview and create steps.
Instructions
Resolve a built-in template and save it as a new Card Builder card in one call.
Resolves template the same way as card_builder_get_card_template,
then passes the config straight to card_builder_create_card — which
assigns a new id server-side, so repeating this call creates a second,
distinct card.
Use when: turning a built-in template into a saved card without the
separate preview/create steps.
Not for: previewing the config first without saving — use
card_builder_get_card_template; a fully custom recipe — use
card_builder_build_from_recipe and card_builder_create_card
directly.
Returns: the created card dict, including its new id. Use that id
with card_builder_renderer_card_config(card_id, slot_entities= {<slot>: ...}) to place the card on a dashboard.
Errors: {"error": "unknown_template", "template": ..., "known": [...]} when template isn't a known template.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the new card, e.g. 'Battery Salon'. | |
| slot | No | Override the template's default entity-slot name, e.g. 'main' instead of 'entity'. Omit to use the template's default. | |
| tags | No | Replacement tag list. Omit to default to ['nexus-template', template]. | |
| template | Yes | Template name, e.g. 'sensor_hero', from card_builder_list_card_templates. | |
| categories | No | Replacement category list. Omit to default to the template's first domain, or 'tile' if it has none. | |
| description | No | Card description. Empty string uses the template's own description instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||