search_locations
Fuzzy-search Australian city names and state codes to look up location IDs for weather data. Returns ranked results for curated locations.
Instructions
Fuzzy-search the 45 curated Australian locations.
The curated set covers all 8 state/territory capitals plus 37 major
regional centres (every AU population centre over ~25k). Anything
outside the curated set still resolves via place-name geocoding or
postcode lookup — see list_curated() for the full set.
Examples: results = await search_locations("sydney") # → [{id: 'sydney', name: 'Sydney', state: 'NSW', ...}]
results = await search_locations("nsw")
# → Newcastle, Wollongong, Sydney (all NSW locations)When to use: - Discover the location ID for a city you know by name - Find all supported locations in a state - Verify whether a place is in the curated set before calling get_weather
Returns: List of LocationSummary (id, name, state, description), ranked by relevance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return, ranked by relevance. | |
| query | Yes | Free-text search query. Matches against location IDs, names, and state codes. Case-insensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |