feat(agent): add frontend action bridge
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { tool } from "@opencode-ai/plugin";
|
||||
import { executeFrontendAction } from "./frontend_action.js";
|
||||
|
||||
export default tool({
|
||||
description:
|
||||
@@ -26,7 +27,7 @@ export default tool({
|
||||
.optional()
|
||||
.describe("Optional animation duration in milliseconds. Defaults to 1000."),
|
||||
},
|
||||
async execute() {
|
||||
return "已缩放到指定地图坐标。";
|
||||
async execute(args, context) {
|
||||
return executeFrontendAction("zoom_to_map", args, context);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user