BlueBubbles 操作
概述
BlueBubbles 是 OpenClaw 的旧版 iMessage 桥接工具。对于已有的 BlueBubbles 后端对话,使用 message 工具并设置 channel: "bluebubbles",以便支持附件、Tapback 回应、编辑/取消发送、回复和群组管理。
需要收集的输入
target(优先使用chat_guid:...;也可以是 E.164 格式的+15551234567或[email protected])message文本(用于发送/编辑/回复)messageId(用于回应/编辑/取消发送/回复)- 附件
path(本地文件路径),或用于 base64 编码的buffer+filename
如果用户表述模糊(例如“给我妈妈发短信”),请询问收件人的 handle 或聊天 GUID 以及确切的消息内容。
操作
发送消息
{
"action": "send",
"channel": "bluebubbles",
"target": "+15551234567",
"message": "来自 OpenClaw 的问候"
}
回应(Tapback)
{
"action": "react",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<消息GUID>",
"emoji": "❤️"
}
移除回应
{
"action": "react",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<消息GUID>",
"emoji": "❤️",
"remove": true
}
编辑已发送的消息
{
"action": "edit",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<消息GUID>",
"message": "更新后的文本"
}
取消发送消息
{
"action": "unsend",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<消息GUID>"
}
回复特定消息
{
"action": "reply",
"channel": "bluebubbles",
"target": "+15551234567",
"replyTo": "<消息GUID>",
"message": "回复那条消息"
}
发送附件
{
"action": "sendAttachment",
"channel": "bluebubbles",
"target": "+15551234567",
"path": "/tmp/photo.jpg",
"caption": "给你"
}
带 iMessage 效果发送
{
"action": "sendWithEffect",
"channel": "bluebubbles",
"target": "+15551234567",
"message": "重大消息",
"effect": "balloons"
}
注意事项
- 需要网关配置
channels.bluebubbles(包含 serverUrl、password、webhookPath)。 - 如果拥有
chat_guid目标(尤其针对群组聊天),请优先使用。 - BlueBubbles 支持丰富的操作,但部分功能依赖于 macOS 版本(例如在 macOS 26 Tahoe 上编辑功能可能存在问题)。
- 网关可能同时提供短消息 ID 和完整消息 ID;完整 ID 在重启后更稳定。
- 底层插件的开发者参考文档位于 BlueBubbles 插件包的 README 中。
可以尝试的想法
- 使用 Tapback 回应来确认请求。
- 当用户引用某条特定消息时,在对应线程中回复。
- 发送文件附件并附加简短说明。