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
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!"
},
}
}))