新增调用前端分区渲染功能,节点通过 ref 文件传输,并增加简单认证

This commit is contained in:
2026-05-18 16:21:23 +08:00
parent 2f83add134
commit 4cbddb9e0c
4 changed files with 89 additions and 4 deletions
+16
View File
@@ -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 "已在地图上应用节点分区渲染。";
},
});