From 19ca36dfe8cc99321fcbde26a9387e3fac74509d Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 11 Aug 2026 11:19:51 -0600 Subject: [feat] add the opencode tools directory. --- opencode/tools/hello.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 opencode/tools/hello.ts (limited to 'opencode/tools/hello.ts') diff --git a/opencode/tools/hello.ts b/opencode/tools/hello.ts new file mode 100644 index 0000000..0b49316 --- /dev/null +++ b/opencode/tools/hello.ts @@ -0,0 +1,15 @@ +import { tool } from "@opencode-ai/plugin" + +export default tool({ + description: "Say hello to a person. Use this tool when explicitly asked to call the hello tool.", + + args: { + name: tool.schema.string().describe("The name of the person to greet"), + }, + + async execute(args) { + const message = `HELLO_TOOL_CALLED ${Date.now()}: Hello, ${args.name}!` + console.error(`[hobs.nvim] hello tool called with name=${JSON.stringify(args.name)}`) + return message + }, +}) -- cgit