List style targets for a block type
card_builder_list_style_targetsList the style targets a block type supports so you can style sub-components like a slider's thumb or a number and unit separately.
Instructions
List the style targets (sub-components) one block type supports.
Looks up block_type in STYLE_TARGETS (defaulting to the single
"block" target); makes no call to Home Assistant. Example:
block-entity-field-state has state and unit targets so you can
colour the number and the unit differently.
Use when: styling a sub-component of a block (e.g. a slider's thumb)
rather than the whole block.
Returns: {block_type, targets} where targets is the list of valid
keys for that block's styles dict.
Errors: {"error": "unknown_block_type", "block_type": ...} when
block_type isn't in the embedded schema.
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": {
"block_type": "<block_type>"
},
"name": "card_builder_list_style_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block_type | Yes | Block type id, e.g. 'block-entity-field-state', from card_builder_list_block_types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||