13 lines
487 B
JavaScript
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()}`
|
|
},
|
|
})
|