返回顶部
i

imsgctl

Read Apple Messages data with imsgctl: check access, list chats, inspect message history, filter by time, include attachment metadata, and watch new activity from the local data available to imsgctl.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
75
下载量
0
收藏
概述
安装方式
版本历史

imsgctl

# imsgctl Use `imsgctl` to read Apple Messages data available on the current machine. ## Use This Skill When - The user wants to inspect iMessage or SMS data from Apple Messages. - The user wants to list recent chats. - The user wants message history for a specific chat. - The user wants to filter message history by time. - The user wants attachment metadata. - The user wants to watch for new messages or reactions. ## Do Not Use This Skill When - The user wants to send or reply to a message. - The user wants to delete, edit, react to, or otherwise modify Messages data. - The request is about Slack, Discord, Telegram, Signal, WhatsApp, or another messaging system. ## Operating Rules - Prefer `--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. - Use `--db PATH` when the user gives a specific database path or when the backend must be explicit. - Use `watch` only for live monitoring. It streams until interrupted. ## Defaults And Access - On macOS, running without `--db` prefers `~/Library/Application Support/imsgkit/replica.db` when a valid replica exists. Otherwise it falls back to `~/Library/Messages/chat.db`. - On Linux, running without `--db` reads `~/.local/share/imsgkit/replica.db`, or `$XDG_DATA_HOME/imsgkit/replica.db` when `XDG_DATA_HOME` is set to an absolute path. - Direct access to `~/Library/Messages/chat.db` requires macOS and Full Disk Access for the process doing the reading. - If contact resolution is unavailable, chat and sender labels may fall back to raw identifiers. ## Common Commands ### Check Access ```bash imsgctl health --json ``` ### List Recent Chats ```bash imsgctl chats --limit 20 --json ``` ### Read Recent History For A Chat ```bash imsgctl history --chat-id 42 --limit 50 --json ``` ### Read History With Attachment Metadata ```bash imsgctl history --chat-id 42 --limit 50 --attachments --json ``` ### Read History In A Time Window ```bash imsgctl history \ --chat-id 42 \ --limit 50 \ --start 2026-03-01T00:00:00Z \ --end 2026-03-02T00:00:00Z \ --json ``` ### Watch New Activity ```bash imsgctl watch --chat-id 42 --json ``` ### Watch New Messages, Attachments, and Reactions ```bash imsgctl watch --chat-id 42 --attachments --reactions --json ``` ### Use An Explicit Database Path ```bash 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 ``` ## Recommended Workflow 1. Run `imsgctl health --json` to confirm access. 2. Run `imsgctl chats --limit 20 --json` to identify the target chat. 3. Use the returned chat ID with `imsgctl history --chat-id ... --json`. 4. Add `--start`, `--end`, `--limit`, or `--attachments` only as needed. 5. Use `imsgctl watch` only if the user asked for live monitoring. ## Viewing Image Attachments 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: - **macOS:** `sips -s format jpeg -Z 800 "/path/to/image.heic" --out /tmp/preview.jpg` - **Linux:** `magick "/path/to/image.heic" -resize 800x800 /tmp/preview.jpg` ## Failure Modes - If direct macOS reads fail, check Full Disk Access first. - If the expected local database path is missing, access will fail until the correct database is available on the current machine. - If chat labels are ambiguous or missing, rely on chat IDs and raw identifiers.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 imsgctl-1775944204 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 imsgctl-1775944204 技能

通过命令行安装

skillhub install imsgctl-1775944204

下载 Zip 包

⬇ 下载 imsgctl v1.0.0

文件大小: 2.41 KB | 发布时间: 2026-4-12 10:16

v1.0.0 最新 2026-4-12 10:16
Read your Apple Messages from any machine.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部