Files
anomalyco_opencode/packages/opencode/src/tool/invalid.ts
T
2025-08-04 12:15:24 -04:00

18 lines
395 B
TypeScript

import { z } from "zod"
import { Tool } from "./tool"
export const InvalidTool = Tool.define("invalid", {
description: "Do not use",
parameters: z.object({
tool: z.string(),
error: z.string(),
}),
async execute(params) {
return {
title: "Invalid Tool",
output: `The arguments provided to the tool are invalid: ${params.error}`,
metadata: {},
}
},
})