mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
support custom tools (#2668)
This commit is contained in:
11
.opencode/tool/foo.ts
Normal file
11
.opencode/tool/foo.ts
Normal 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!"
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user