foo.ts 220 B

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