Skip to content

Add Photos module with screenshot search functionality #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Rish-it opened this issue Apr 24, 2025 · 0 comments · May be fixed by #39
Open

Add Photos module with screenshot search functionality #38

Rish-it opened this issue Apr 24, 2025 · 0 comments · May be fixed by #39

Comments

@Rish-it
Copy link

Rish-it commented Apr 24, 2025

Description & Checkpoints

I've implemented a comprehensive Photos module that enables users to access and search their Apple Photos library, with special focus on finding screenshots.

  1. New Photos Module:

    • Created a new utils/photos.ts module that interfaces with Apple Photos via JXA
    • Added type definitions, error handling, and comprehensive methods for working with photos
  2. Core Photo Search Functionality:

    • getAllAlbums: Lists all photo albums in the library
    • getPhotosFromAlbum: Retrieves photos from a specific album
    • searchPhotosByText: Searches photos by text across filenames, descriptions, and keywords
    • searchPhotosByDateRange: Finds photos within a date range
    • getFavoritePhotos: Returns favorite/starred photos
    • getMemories: Accesses memory collections (trips, events, etc.)
    • getRecentPhotos: Gets most recent photos
    • getPeople: Lists recognized people in Photos
    • getPhotosByPerson: Finds photos of specific people
  3. Screenshot-Specific Features:

    • Added a dedicated findScreenshots function that uses multiple methods to identify screenshots:
      • Filename patterns (Screenshot, Screen Shot)
      • Album membership (Screenshots albums)
      • Keywords
      • File types (PNG) with screenshot metadata
    • Created a specialized screenshots operation that offers a more seamless user experience
  4. Photo Management:

    • exportPhoto: Export photos to a specific location
    • openPhoto: Open a photo in the Photos app

This implementation enables Claude users to easily work with their Photos library, with particular emphasis on finding screenshots across their devices.

Rish-it added a commit to Rish-it/apple-mcp that referenced this issue Apr 24, 2025
…upport

- New JXA-powered utils/photos.ts for Apple Photos integration
- Core APIs: getAllAlbums, getPhotosFromAlbum, searchPhotosByText, searchPhotosByDateRange, getFavoritePhotos, getMemories, getRecentPhotos, getPeople, getPhotosByPerson
- findScreenshots util—filename patterns, “Screenshots” album, keywords and metadata to surface all screenshots
- screenshots operation for streamlined UX
- exportPhoto & openPhoto helpers for photo management

Closes supermemoryai#38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant