Learn how to build a custom tool to get current time.
Dependencies: Empty
Script:
async function exeFunc({ timeZone }) { return new Date().toLocaleString("en-US", { timeZone: timeZone }) }
Properties:
{ "timeZone": { "type": "string", "description": "Use the given timezone to format a new time e.g., 'Asia/Tokyo'. The value cannot be UTC." } }
Last updated 11 months ago