get_weather
Get weather forecasts for any city worldwide with detailed temperature, wind, precipitation, and comfort level data for 1-16 days using Open-Meteo API.
Instructions
获取指定城市的天气预报信息。支持1-16天的天气预报,包括温度、风力、舒适度、降雨降雪、紫外线指数、PM2.5等详细信息。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
city | Yes | 城市名称,可以是中文或英文,例如:北京、Shanghai、New York等 | |
days | No | 预报天数,范围1-16天,默认7天 |
Input Schema (JSON Schema)
{
"properties": {
"city": {
"description": "城市名称,可以是中文或英文,例如:北京、Shanghai、New York等",
"type": "string"
},
"days": {
"default": 7,
"description": "预报天数,范围1-16天,默认7天",
"maximum": 16,
"minimum": 1,
"type": "number"
}
},
"required": [
"city"
],
"type": "object"
}