新增调用前端分区渲染功能,节点通过 ref 文件传输,并增加简单认证
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { tool } from "@opencode-ai/plugin";
|
||||
|
||||
export default tool({
|
||||
description: "在前端地图上对 junctions 图层应用分区渲染。",
|
||||
args: {
|
||||
reason: tool.schema
|
||||
.string()
|
||||
.describe("Why this junction rendering action is needed for the user request."),
|
||||
render_ref: tool.schema
|
||||
.string()
|
||||
.describe("Reference to a stored junction rendering payload resolved by the Agent service."),
|
||||
},
|
||||
async execute() {
|
||||
return "已在地图上应用节点分区渲染。";
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user