MoltenView Skill
Push structured data to MoltenView — a persistent visual canvas for AI agents.
When to Use
✅ USE this skill when:
- - Displaying charts, metrics, or dashboards
- Data that should persist (not scroll away)
- Live-updating information
- Visual summaries the user will reference
❌ DON'T use when:
- - Simple text responses suffice
- One-time data that doesn't need persistence
Socket Path
CODEBLOCK0
Push a View
CODEBLOCK1
Required Fields
- -
data.source — Agent name (string) - INLINECODE1 — Unique section ID
- INLINECODE2 — Unique item ID
- INLINECODE3 — Item title
Supported Item Types
Set type on each item (omit or "text" for default):
| Type | Key Fields |
|---|
| text | title, subtitle, detail, badge |
| chart |
chart.chartType (bar/line/pie/area), chart.dataPoints [{label, value, color}] |
|
gauge | gauge.value, gauge.min, gauge.max, gauge.label, gauge.color |
|
progress | progress (0.0-1.0), subtitle |
|
metric | title (label), subtitle (big value), detail (change), metricColor |
|
link | url (https/mailto), title, subtitle, icon |
|
image | imageBase64, icon (SF Symbol), title |
Example: Push a Chart
CODEBLOCK2
Example: Push Metrics
CODEBLOCK3
Actions
| Action | Purpose | Data Required |
|---|
| INLINECODE6 | Display new view | Yes |
| INLINECODE7 |
Update existing view | Yes |
|
clear | Clear current view | No |
|
status | Check connection | No |
Status Check
CODEBLOCK4
Notes
- - MoltenView must be running (free on Mac App Store)
- Views persist until cleared or replaced
- Get socket path from MoltenView → Settings → Connection
- Download: https://apps.apple.com/app/molten-view/id6742515562
MoltenView 技能
将结构化数据推送到 MoltenView——一个面向 AI 代理的持久化可视化画布。
使用时机
✅ 在以下情况使用此技能:
- - 展示图表、指标或仪表盘
- 需要持久化保存(而非滚动消失)的数据
- 实时更新的信息
- 用户需要参考的可视化摘要
❌ 在以下情况不要使用:
- - 简单的文本回复即可满足需求
- 一次性数据,无需持久化保存
套接字路径
bash
export MOLTENVIEW_SOCKET=/Users/$USER/Library/Containers/com.goldcote.MoltenView/Data/.moltenview/view.sock
推送视图
bash
echo {action:push,data:{title:仪表盘,source:openclaw,sections:[{id:s1,header:指标,items:[{id:i1,title:销售额,subtitle:$12,450}]}]}} | nc -U $MOLTENVIEW_SOCKET
必填字段
- - data.source — 代理名称(字符串)
- sections[].id — 唯一章节 ID
- sections[].items[].id — 唯一项目 ID
- sections[].items[].title — 项目标题
支持的项目类型
在每个项目上设置 type(省略或使用 text 表示默认类型):
| 类型 | 关键字段 |
|---|
| text | title, subtitle, detail, badge |
| chart |
chart.chartType (bar/line/pie/area), chart.dataPoints [{label, value, color}] |
|
gauge | gauge.value, gauge.min, gauge.max, gauge.label, gauge.color |
|
progress | progress (0.0-1.0), subtitle |
|
metric | title (标签), subtitle (大数值), detail (变化), metricColor |
|
link | url (https/mailto), title, subtitle, icon |
|
image | imageBase64, icon (SF 符号), title |
示例:推送图表
bash
echo {action:push,data:{title:销售额,source:openclaw,sections:[{id:s1,header:收入,items:[{id:c1,type:chart,title:月度,chart:{chartType:bar,dataPoints:[{label:一月,value:100},{label:二月,value:150},{label:三月,value:200}]}}]}]}} | nc -U $MOLTENVIEW_SOCKET
示例:推送指标
bash
echo {action:push,data:{title:关键绩效指标,source:openclaw,sections:[{id:s1,header:今日,items:[{id:m1,type:metric,title:收入,subtitle:$12,450,detail:+12%,metricColor:#00FF00},{id:m2,type:progress,title:目标,progress:0.73}]}]}} | nc -U $MOLTENVIEW_SOCKET
操作
| 操作 | 用途 | 是否需要数据 |
|---|
| push | 显示新视图 | 是 |
| update |
更新现有视图 | 是 |
| clear | 清除当前视图 | 否 |
| status | 检查连接状态 | 否 |
状态检查
bash
echo {action:status} | nc -U $MOLTENVIEW_SOCKET
返回:{status:ok}
注意事项
- - MoltenView 必须正在运行(Mac App Store 免费获取)
- 视图会持久保存,直到被清除或替换
- 从 MoltenView → 设置 → 连接获取套接字路径
- 下载地址:https://apps.apple.com/app/molten-view/id6742515562