Present hosted widget documents on a connected macOS panel and control panel visibility or navigation.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-canvas-fff0d9783f70 ,按照其中的说明把「canvas」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use show_widget with presentation.target: "node_panel" to create a hosted widget document and present it on an eligible connected Mac. This is the normal agent path.
The Canvas tool is limited to direct panel control:
present: show the panel, optionally with a hosted document path or local app scheme.hide: hide the panel.navigate: navigate the visible panel to a hosted document path or local app scheme.Do not invent local file paths or arbitrary external URLs. Hosted documents use the capability-scoped /__openclaw__/canvas/documents/... route returned by show_widget. A2UI content renders on session boards and loads renderer assets from /__openclaw__/a2ui.
If plugins.entries.canvas.config.host.enabled is false, hosted widget documents, A2UI renderer assets, and node-panel presentation are disabled together.