This commit is contained in:
2026-04-29 11:47:28 +08:00
parent 6b7978957a
commit d3e7baca99
25 changed files with 1523 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
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 "已在地图上定位到指定要素。";
},
});