diff options
| author | Dax Raad <[email protected]> | 2025-09-18 05:42:59 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-18 05:42:59 -0400 |
| commit | 1ffc8be2b6917073902c002fc40bf74dd27cb8de (patch) | |
| tree | eb1a5ecee5d455226f961c839b3c6fc461434ec7 /.opencode | |
| parent | 5f2945ae71dc8d44369a313bc6466c74e991eaf4 (diff) | |
| download | opencode-1ffc8be2b6917073902c002fc40bf74dd27cb8de.tar.gz opencode-1ffc8be2b6917073902c002fc40bf74dd27cb8de.zip | |
rework custom tools
Diffstat (limited to '.opencode')
| -rw-r--r-- | .opencode/tool/foo.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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!" }, -})) +}) |
