Files
TJWaterAgent/.opencode/tools/locate_features.ts
T
2026-05-18 17:12:25 +08:00

15 lines
476 B
TypeScript

import { tool } from "@opencode-ai/plugin";
export default tool({
description: "Locate and highlight TJWater map features in the frontend.",
args: {
ids: tool.schema.array(tool.schema.string()).describe("Feature ids to locate."),
feature_type: tool.schema
.enum(["junction", "pipe", "valve", "reservoir", "pump", "tank"])
.describe("Type of feature to locate."),
},
async execute() {
return "已在地图上定位到指定要素。";
},
});