get_current_date
Retrieve the current date or calculate a relative date (e.g., yesterday, tomorrow) based on user input, ensuring accurate date handling for dynamic use cases.
Instructions
获取当前日期, 如果用户没有提供日期, 则返回当前日期, 如果用户提供的是相对单位, 如前天, 昨天, 明天, 则返回相对单位后的日期
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | Yes | 日期 比如2025-05-29 或者 前天 昨天 明天 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"date": {
"description": "日期 比如2025-05-29 或者 前天 昨天 明天",
"type": "string"
}
},
"required": [
"date"
],
"type": "object"
}