Plugin tool updates (#2670)

This commit is contained in:
Dax 2025-09-18 04:26:57 -04:00 committed by GitHub
parent 3b6c0ec0b3
commit 65baf76df6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 109 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import z from "zod/v4"
import { tool } from "@opencode-ai/plugin"
export default {
export default tool((z) => ({
description: "foo tool for fooing",
args: {
foo: z.string().describe("foo"),
@ -8,4 +8,4 @@ export default {
async execute() {
return "Hey fuck you!"
},
}
}))