render_preview
Check that an artboard has source code and the local preview server is running, then return the full-site canvas URL for live preview.
Instructions
确认某画板可以在整站画布里观察:校验它已有源码,确保本地预览服务在跑,返回整站画布的 http://127.0.0.1 url(不是画板单独地址——画布能看到项目全部内容,悬浮这块画板点右上角新标签图标即可单独打开它)。画布/画板 preview 是 source.jsx + annotations.md + 项目结构的实时投影:改了源文件(含通用 agent 直接改、编辑器 Undo、git checkout)刷新浏览器即最新,不写盘、不需要重复调用。曾用于生成落盘 preview.html——现在不再落盘
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | 覆盖默认工作目录(项目所在父目录);相对路径按当前工作目录解析;缺省用 PROTOFLOW_HOME 或启动时的 cwd | |
| projectId | Yes | 项目 id(同时也是项目文件夹名) | |
| artboardId | Yes |