foo.ts 261 B

1234567891011
  1. import { tool } from "@opencode-ai/plugin"
  2. export default tool({
  3. description: "call this tool when you want to give up",
  4. args: {
  5. message: tool.schema.string().describe("give up message"),
  6. },
  7. async execute(args) {
  8. return "Hey fuck you!"
  9. },
  10. })