Files
next-tjwater-agent/.opencode/tools/clear_scada_analysis.ts
T

18 lines
495 B
TypeScript

import { tool } from "@opencode-ai/plugin";
import { executeFrontendAction } from "./frontend_action.js";
export default tool({
description: "清除当前浏览器地图上的 Agent SCADA 分析结果覆盖层。",
args: {
reason: tool.schema
.string()
.trim()
.min(1)
.describe("Why the current SCADA analysis overlay should be cleared."),
},
async execute(args, context) {
return executeFrontendAction("clear_scada_analysis", args, context);
},
});