get_weather_by_name
Retrieve current, hourly, and daily weather for any location by name. Aggregates data from multiple providers with automatic fallback for stargazing planning.
Instructions
通过地点名称获取综合天气(当前 + 小时预报 + 日预报)。
Geocoding uses Amap Geocoding API (CJK) → Photon → Nominatim cascade. Weather data is aggregated from multiple providers with graceful fallback — open-meteo is always available without an API key.
中文地名提示:建议使用完整行政区划名称,如 "浙江安吉"、"杭州西湖区"。
高德地理编码 API 会正确解析到对应的行政区(如安吉县),而非 POI 商铺。
需要精确定位时优先使用 get_weather_by_position(lat, lon)。
Args: place_name: 地点名称。中文请使用完整行政区划(如 "浙江省安吉县"),避免仅用2-3字短名。 provider: provider 模式,可选 all/qweather/open-meteo/wttr。
Returns: Dict,包含 keys: "data", "_meta"(成功时)或 "error", "_meta"(失败时)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | all | |
| place_name | Yes |