get_sun_times
Retrieve sunrise, sunset, and twilight times for any location and date using a free public API.
Instructions
获取指定地点和日期的日出、日落、晨光、暮光等天文时间。 数据来源: Sunrise-Sunset API,完全免费。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "get_sun_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | 纬度 | |
| longitude | Yes | 经度 | |
| date | No | 日期,格式 YYYY-MM-DD,默认今天 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |