BlueBubbles 動作
概述
BlueBubbles 是 OpenClaw 的舊版 iMessage 橋接工具。對於需要附件、Tapback 反應、編輯/取消發送、回覆或群組管理的現有 BlueBubbles 對話,請使用 message 工具並搭配 channel: "bluebubbles"。
需要收集的輸入
target(優先使用chat_guid:...;也可用+15551234567(E.164 格式)或[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": "<message-guid>",
"emoji": "❤️"
}
移除反應
{
"action": "react",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<message-guid>",
"emoji": "❤️",
"remove": true
}
編輯已發送的訊息
{
"action": "edit",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<message-guid>",
"message": "更新後的文字"
}
取消發送訊息
{
"action": "unsend",
"channel": "bluebubbles",
"target": "+15551234567",
"messageId": "<message-guid>"
}
回覆特定訊息
{
"action": "reply",
"channel": "bluebubbles",
"target": "+15551234567",
"replyTo": "<message-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 反應來確認請求。
- 當使用者提到某則特定訊息時,在討論串中回覆。
- 發送檔案附件並附上簡短說明。