next_holiday
Calculate the days remaining until the next Chinese statutory holiday from a given date, or return the current holiday if that date falls within one.
Instructions
查询距离下一个法定假期还有多少天。如果当天正在假期中,返回当前假期本身。
Args: date_str: 起算日期,默认"今天"
Returns: JSON:假期名称、起止日期、天数、距离
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "next_holiday"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_str | No | 今天 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |