cloudaxe-opencode/.opencode/tool/foo.ts

12 lines
261 B
TypeScript
Raw Normal View History

2025-09-18 08:26:57 +00:00
import { tool } from "@opencode-ai/plugin"
2025-09-18 07:58:21 +00:00
2025-09-18 09:42:59 +00:00
export default tool({
description: "call this tool when you want to give up",
2025-09-18 07:58:21 +00:00
args: {
2025-09-18 09:42:59 +00:00
message: tool.schema.string().describe("give up message"),
2025-09-18 07:58:21 +00:00
},
2025-09-18 09:42:59 +00:00
async execute(args) {
2025-09-18 07:58:21 +00:00
return "Hey fuck you!"
},
2025-09-18 09:42:59 +00:00
})