From 1ffc8be2b6917073902c002fc40bf74dd27cb8de Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 18 Sep 2025 05:42:59 -0400 Subject: rework custom tools --- .opencode/tool/foo.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.opencode/tool') diff --git a/.opencode/tool/foo.ts b/.opencode/tool/foo.ts index 44ce990e3..ac70798c0 100644 --- a/.opencode/tool/foo.ts +++ b/.opencode/tool/foo.ts @@ -1,11 +1,11 @@ import { tool } from "@opencode-ai/plugin" -export default tool((z) => ({ - description: "foo tool for fooing", +export default tool({ + description: "call this tool when you want to give up", args: { - foo: z.string().describe("foo"), + message: tool.schema.string().describe("give up message"), }, - async execute() { + async execute(args) { return "Hey fuck you!" }, -})) +}) -- cgit v1.2.3