Search areas
search_areasFind Home Assistant areas by fuzzy-matching a name fragment and return ranked matches with IDs, floor, icon, and score. Use it when you know an area's name but not its exact ID.
Instructions
Fuzzy-rank areas by name.
Scores every area from the area registry against query, keeps only
scores above 0, and returns the top limit matches sorted descending.
Use when: you don't know an area's exact id and want a ranked guess
from a name fragment.
Not for: an exact, unranked area list — use areas_list_areas.
Returns: list of dicts (area_id, name, floor_id, icon, score) up to
limit entries.
Limits: areas that score exactly 0 are dropped entirely; a WS failure
yields an empty list rather than an error.
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_areas"
}
}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 area names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |