get_weather
Retrieve weather forecasts for specific locations in China using LocationID or coordinates. Supports real-time, hourly, and daily forecasts.
Instructions
获取指定地点的天气预报。请提供LocationID或经纬度坐标。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
days | No | 预报类型。now:实时天气, 24h/72h/168h:逐小时预报, 3d/7d/10d/15d/30d:逐天预报 | now |
location | Yes | 需要查询地区的LocationID或以英文逗号分隔的经度,纬度坐标(十进制,最多支持小数点后两位)。例如: 101010100 或 116.41,39.92。 |
Input Schema (JSON Schema)
{
"properties": {
"days": {
"default": "now",
"description": "预报类型。now:实时天气, 24h/72h/168h:逐小时预报, 3d/7d/10d/15d/30d:逐天预报",
"enum": [
"now",
"24h",
"72h",
"168h",
"3d",
"7d",
"10d",
"15d",
"30d"
],
"type": "string"
},
"location": {
"description": "需要查询地区的LocationID或以英文逗号分隔的经度,纬度坐标(十进制,最多支持小数点后两位)。例如: 101010100 或 116.41,39.92。",
"type": "string"
}
},
"required": [
"location"
],
"type": "object"
}