support custom tools (#2668)

This commit is contained in:
Dax
2025-09-18 03:58:21 -04:00
committed by GitHub
parent e9d902d844
commit 3b6c0ec0b3
12 changed files with 140 additions and 488 deletions

11
.opencode/tool/foo.ts Normal file
View File

@@ -0,0 +1,11 @@
import z from "zod/v4"
export default {
description: "foo tool for fooing",
args: {
foo: z.string().describe("foo"),
},
async execute() {
return "Hey fuck you!"
},
}