get_weather
Retrieve current weather and up to 16-day forecasts by city name or coordinates using the free Open-Meteo API. Specify timezone and forecast duration for tailored results.
Instructions
获取指定城市或经纬度坐标的天气信息(当前 + 预报)。 数据来源: Open-Meteo,完全免费。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | 城市名称(如 "Beijing"、"Tokyo"、"London",中英文均可) | |
| latitude | No | 纬度(不提供 city 时使用) | |
| longitude | No | 经度(不提供 city 时使用) | |
| timezone | No | 时区,默认 "auto" | auto |
| forecast_days | No | 预报天数,1-16,默认 3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |