Install
openclaw skills install @jpreagan/imsgctlRead Apple Messages data with imsgctl: check access, list chats, inspect message history, filter by time, include attachment metadata, and watch new activity...
openclaw skills install @jpreagan/imsgctlUse imsgctl to read Apple Messages data available on the current machine.
--json when results may be parsed or reused.imsgctl health --json emits one JSON object.imsgctl chats --json, history --json, and watch --json emit JSONL.--db PATH when the user gives a specific database path or when the backend must be explicit.watch only for live monitoring. It streams until interrupted.--db prefers ~/Library/Application Support/imsgkit/replica.db when a valid replica exists. Otherwise it falls back to ~/Library/Messages/chat.db.--db reads ~/.local/share/imsgkit/replica.db, or $XDG_DATA_HOME/imsgkit/replica.db when XDG_DATA_HOME is set to an absolute path.~/Library/Messages/chat.db requires macOS and Full Disk Access for the process doing the reading.imsgctl health --json
imsgctl chats --limit 20 --json
imsgctl history --chat-id 42 --limit 50 --json
imsgctl history --chat-id 42 --limit 50 --attachments --json
imsgctl history \
--chat-id 42 \
--limit 50 \
--start 2026-03-01T00:00:00Z \
--end 2026-03-02T00:00:00Z \
--json
imsgctl watch --chat-id 42 --json
imsgctl watch --chat-id 42 --attachments --reactions --json
imsgctl chats --db ~/Library/Application\ Support/imsgkit/replica.db --limit 20 --json
imsgctl history --db ~/.local/share/imsgkit/replica.db --chat-id 42 --limit 50 --json
imsgctl health --json to confirm access.imsgctl chats --limit 20 --json to identify the target chat.imsgctl history --chat-id ... --json.--start, --end, --limit, or --attachments only as needed.imsgctl watch only if the user asked for live monitoring.When --attachments reveals an image, the file is often too large to read directly. Convert it to a smaller JPEG preview, then read the result:
sips -s format jpeg -Z 800 "/path/to/image.heic" --out /tmp/preview.jpgmagick "/path/to/image.heic" -resize 800x800 /tmp/preview.jpg