Imessage

nousresearch/hermes-agent/skills/apple/imessage

作者 nousresearch25a71a744cb9MIT252K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Send and receive iMessages/SMS via the imsg CLI on macOS.

仅含说明Communication
AI 生成的概览

在 macOS 上通过 imsg 命令行工具发送和读取 iMessage/SMS 对话。

功能
该技能指导智能体在 macOS 上使用 imsg 命令行工具列出聊天、读取对话历史、发送文本消息(可附带文件),以及监听新收到的消息。它说明了命令语法、iMessage 与 SMS 的服务选择,以及发送前确认收件人等安全规则。其产出为已发送的消息以及获取到的聊天或历史记录输出,通常为 JSON 格式。
适用场景
当用户要求发送 iMessage 或短信、读取 iMessage 对话历史,或查看 Messages.app 最近的聊天时使用。它不适用于其他消息平台、群聊成员管理或批量群发消息。
运行要求
需要已登录 Messages.app 的 macOS、已安装的 imsg 命令行工具(例如通过 Homebrew 安装)、为终端授予完全磁盘访问权限,以及为 Messages.app 授予自动化权限。该技能不包含脚本,仅为说明文档。

iMessage

Use imsg to read and send iMessage/SMS via macOS Messages.app.

Prerequisites

  • macOS with Messages.app signed in
  • Install: brew install steipete/tap/imsg
  • Grant Full Disk Access for terminal (System Settings → Privacy → Full Disk Access)
  • Grant Automation permission for Messages.app when prompted

When to Use

  • User asks to send an iMessage or text message
  • Reading iMessage conversation history
  • Checking recent Messages.app chats
  • Sending to phone numbers or Apple IDs

When NOT to Use

  • Telegram/Discord/Slack/WhatsApp messages → use the appropriate gateway channel
  • Group chat management (adding/removing members) → not supported
  • Bulk/mass messaging → always confirm with user first

Quick Reference

List Chats

bash
imsg chats --limit 10 --json

View History

bash
# By chat IDimsg history --chat-id 1 --limit 20 --json
# With attachments infoimsg history --chat-id 1 --limit 20 --attachments --json

Send Messages

bash
# Text onlyimsg send --to "+14155551212" --text "Hello!"
# With attachmentimsg send --to "+14155551212" --text "Check this out" --file /path/to/image.jpg
# Force iMessage or SMSimsg send --to "+14155551212" --text "Hi" --service imessageimsg send --to "+14155551212" --text "Hi" --service sms

Watch for New Messages

bash
imsg watch --chat-id 1 --attachments

Service Options

  • --service imessage — Force iMessage (requires recipient has iMessage)
  • --service sms — Force SMS (green bubble)
  • --service auto — Let Messages.app decide (default)

Rules

  1. Always confirm recipient and message content before sending
  2. Never send to unknown numbers without explicit user approval
  3. Verify file paths exist before attaching
  4. Don't spam — rate-limit yourself

Example Workflow

User: "Text mom that I'll be late"

bash
# 1. Find mom's chatimsg chats --limit 20 --json | jq '.[] | select(.displayName | contains("Mom"))'
# 2. Confirm with user: "Found Mom at +1555123456. Send 'I'll be late' via iMessage?"
# 3. Send after confirmationimsg send --to "+1555123456" --text "I'll be late"

来源与署名

来源:nousresearch/hermes-agent位于skills/apple/imessage提交25a71a7

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架