init
This commit is contained in:
@@ -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 "已在地图上定位到指定要素。";
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user