mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 20:49:55 +00:00
support custom tools (#2668)
This commit is contained in:
parent
e9d902d844
commit
3b6c0ec0b3
12 changed files with 140 additions and 488 deletions
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!"
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue