a27c45910c
Co-authored-by: Copilot <copilot@github.com>
26 lines
993 B
TypeScript
26 lines
993 B
TypeScript
import { tool } from "@opencode-ai/plugin";
|
|
|
|
export default tool({
|
|
description: "打开前端的 SCADA 监测数据历史面板。",
|
|
args: {
|
|
reason: tool.schema
|
|
.string()
|
|
.describe("Why SCADA panel interaction is required for this request."),
|
|
device_ids: tool.schema
|
|
.array(tool.schema.string())
|
|
.optional()
|
|
.describe("Preferred SCADA device ids."),
|
|
device_id: tool.schema.string().optional().describe("Single SCADA device id."),
|
|
feature_infos: tool.schema
|
|
.array(tool.schema.tuple([tool.schema.string(), tool.schema.string()]))
|
|
.optional()
|
|
.describe("Legacy [id, type] pairs."),
|
|
start_time: tool.schema.string().optional().describe("Optional ISO8601 start time."),
|
|
end_time: tool.schema.string().optional().describe("Optional ISO8601 end time."),
|
|
},
|
|
async execute() {
|
|
// SCADA 面板仍在浏览器侧执行,工具结果不承载实际监测数据。
|
|
return "已打开 SCADA 监测面板。";
|
|
},
|
|
});
|