formatted_datetime
Retrieve the current local date and time formatted according to your specified strftime pattern. Customize display format or use default YYYY-MM-DD HH:MM:SS.
Instructions
Return the current date and time using a custom format.
Parameters
format : str, optional strftime-compatible format string. Defaults to "%Y-%m-%d %H:%M:%S".
Returns
Dict[str, Any] A dictionary containing: - status : str Indicates successful execution or error. - formatted : str Current datetime formatted according to the provided format string.
If the format string is invalid, an error response is returned.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": "formatted_datetime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | %Y-%m-%d %H:%M:%S |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||