format_date
Format dates and times with custom patterns such as YYYY-MM-DD HH:mm:ss. Accepts ISO 8601, unix timestamps, or 'now' for current time.
Instructions
Format a date/time using a format string. Tokens: YYYY, MM, DD, HH, mm, ss, SSS.
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": {
"date": "<date>",
"format": "<format>"
},
"name": "format_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date to format (ISO 8601, unix timestamp, or 'now') | |
| format | Yes | Format string, e.g. 'YYYY-MM-DD HH:mm:ss' |