Files
pi_mcps/zoo_backup/home/tools/hello_test.js
T
2026-06-24 19:27:14 +02:00

13 lines
487 B
JavaScript

const { parametersSchema: z, defineCustomTool } = require("@roo-code/types")
module.exports = defineCustomTool({
name: "hello_test",
description: "A simple test tool that returns a greeting. Used to verify custom tool loading works.",
parameters: z.object({
name: z.string().optional().describe("Name to greet. Defaults to 'World'"),
}),
async execute({ name }) {
return `Hello, ${name || "World"}! Custom tools are working. Time: ${new Date().toISOString()}`
},
})