Menu
popagent
publicLatest change 6edc7e928c57dab23c0973ed3f7ee70b3ebb72d5 - Initial popagent baseline by AkurAI Build
import { createTool } from "@mastra/core/tools";
import { z } from "zod";
export const getTime = createTool({
id: "get-time",
description: "Get the current date and time (UTC, ISO 8601).",
outputSchema: z.object({ now: z.string() }),
execute: async () => ({ now: new Date().toISOString() }),
});