Building a custom Tool
Learn how to build a custom tool to get current time.

Step by step instructions
Input your node.js code

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."
}
}Press "Next"
Publish your tool
Publish a toolLast updated


