opencode/.opencode/tool/foo.ts

12 lines
220 B
TypeScript
Raw Normal View History

2025-09-18 16:26:57 +08:00
import { tool } from "@opencode-ai/plugin"
2025-09-18 15:58:21 +08:00
2025-09-18 16:26:57 +08:00
export default tool((z) => ({
2025-09-18 15:58:21 +08:00
description: "foo tool for fooing",
args: {
foo: z.string().describe("foo"),
},
async execute() {
return "Hey fuck you!"
},
2025-09-18 16:26:57 +08:00
}))