9 lines
683 B
TypeScript
9 lines
683 B
TypeScript
import { optionalToolReason } from "../tool-reason.js";
|
|
import { tool } from "../tool.js";
|
|
import { executeFrontendAction } from "./frontend_action.js";
|
|
export default tool({
|
|
description: "查询当前项目资产最多24小时的监测历史并显示曲线面板,等待浏览器回执。使用服务返回的单位和数据,缺数时明确说明。仅普通会话可用。",
|
|
args: { element_type: tool.schema.enum(["junction", "pipe"]), element_id: tool.schema.string().min(1).max(128), start: tool.schema.string(), end: tool.schema.string(), reason: optionalToolReason },
|
|
async execute(args, context) { return executeFrontendAction("view_history", args, context); },
|
|
});
|