Search entities
search_entitiesFuzzy-rank Home Assistant entities by entity_id, friendly_name, and device_id to find the right entity when you only know a name fragment. Returns top matches with scores, dropping zero-score results.
Instructions
Fuzzy-rank entities by entity_id, friendly_name and device_id.
Scores every entity against query with substring match (score 1.0)
or a sequence-similarity ratio, keeps only scores above 0, and returns
the top limit matches sorted descending.
Use when: you don't know the exact entity_id and want a ranked guess
from a name fragment.
Returns: list of dicts (entity_id, friendly_name, state, device_id,
score) up to limit entries.
Limits: entities that score exactly 0 are dropped entirely, not just
deprioritised.
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": {
"query": "<query>"
},
"name": "search_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of ranked results to return; defaults to 20. | |
| query | Yes | Search text to fuzzy-match against entity_id, friendly_name and device_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |