Tidyware

MCP server · App Intents · CLI

TwinSweep
AI 智能体接入

每项功能都可以由 AI 助手调用。一切都在 Mac 本地运行——AI 发出请求,TwinSweep 完成工作,TwinSweep 不会上传任何内容。

一键连接

03

Claude Desktop / Cursor

打开 TwinSweep → 设置 → AI → 连接。然后重启 AI 应用。

Claude Code

设置 → AI → 拷贝命令,然后粘贴到终端。

Siri 与快捷指令

操作会出现在“快捷指令”App 的 TwinSweep 分类下。

手动配置 MCP:

{
  "mcpServers": {
    "twinsweep": {
      "command": "/Applications/TwinSweep.app/Contents/MacOS/twinsweep",
      "args": ["mcp"]
    }
  }
}

工具

9

工具名称和说明以英文显示——与你的 AI 助手收到的内容完全一致。

工具作用会改动文件?
find_duplicatesScan folders for identical files and (optionally) near-duplicate photos. Changes nothing. Returns a scan_id, space that can be freed (by kind), and each group with the copy to keep and why. Skips system/app-data folders, app bundles, photo libraries, code projects, hidden files, symlinks and iCloud files not downloaded.否
get_scanShow all groups of a previous scan ("latest" or a scan_id). Read-only.否
trash_duplicatesMove extra copies from a scan to the Trash. By default only identical copies; similar photos only with include_similar or when their groups are listed. At least one copy per group is always kept. Each file is re-checked first; network drives are never touched. Undo with undo. Ask the user before calling.是
list_cleanupsPast cleanups (newest first) with how many files and whether they were undone. Read-only.否
undoPut files from a cleanup back from the Trash to their original folders (default: the most recent cleanup; or give cleanup_id from list_cleanups). Never overwrites a file that now exists at the original path.是
undo_lastSame as undo with no cleanup_id.是
find_photo_duplicatesFind identical and near-duplicate photos in the Apple Photos library (optionally one year or the last N days). Changes nothing. Uses the TwinSweep app (it asks for Photos access the first time). Returns a scan_id and groups with the photo to keep (favorites first, then highest resolution).否
album_photo_duplicatesPut the extra photos from a photo scan into the album "TwinSweep – Duplicates" so the user can review and delete them in Photos. Never deletes anything.是
delete_photo_duplicatesDelete the extra copies from a photo scan the standard Photos way: macOS shows its own confirmation, and photos go to Recently Deleted for 30 days (recoverable). By default only identical groups; similar groups only with include_similar or when listed. Favorites are never deleted. Ask the user first.是

请求示例

05

命令行

CLI
twinsweep list
twinsweep find_duplicates --folders ~/Downloads --similar_images true