current_time
Retrieve the current date and time with customizable format and timezone. Use it to get localized timestamps for any IANA timezone.
Instructions
Get the current date and time.
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": "current_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | The format of the time | YYYY-MM-DD HH:mm:ss |
| timezone | No | The timezone of the time, IANA timezone name, e.g. Asia/Shanghai |