MCP server · App Intents · CLI
모든 기능을 AI 어시스턴트가 호출할 수 있어요. 모든 작업은 Mac에서 로컬로 실행돼요 — AI가 요청을 보내면 TwinSweep이(가) 작업을 처리하고, TwinSweep은(는) 아무것도 업로드하지 않아요.
TwinSweep 열기 → 설정 → AI → 연결. 그런 다음 AI 앱을 다시 시작하세요.
설정 → AI → 명령어 복사 후 터미널에 붙여 넣으세요.
단축어 앱의 TwinSweep 항목에 동작이 표시돼요.
MCP 수동 설정:
{
"mcpServers": {
"twinsweep": {
"command": "/Applications/TwinSweep.app/Contents/MacOS/twinsweep",
"args": ["mcp"]
}
}
}
도구 이름과 설명은 영어로 표시돼요 — AI 어시스턴트가 실제로 받는 내용 그대로예요.
| 도구 | 기능 | 파일 변경? |
|---|---|---|
find_duplicates | Scan 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_scan | Show all groups of a previous scan ("latest" or a scan_id). Read-only. | 아니요 |
trash_duplicates | Move 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_cleanups | Past cleanups (newest first) with how many files and whether they were undone. Read-only. | 아니요 |
undo | Put 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_last | Same as undo with no cleanup_id. | 예 |
find_photo_duplicates | Find 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_duplicates | Put 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_duplicates | Delete 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. | 예 |
twinsweep list twinsweep find_duplicates --folders ~/Downloads --similar_images true