media_library
Installation
SKILL.md
Media Library
Purpose
Find the user's photos in Jarvis's uploaded library or a connected device gallery. The media-library CLI covers uploaded photos only.
Device Photos
Search connected galleries for explicit gallery requests, or when uploaded or attached images are insufficient for a personal photo request.
- Discover. Call
device.list, thendevice.describe. Choose a reachable device advertisingphotos.searchincommands: user-named first, thenis_request_origin, then another phone. Clarify ambiguity. - Search. Invoke
photos.search, narrowing with its advertised filters; albums mean folders. Respect permission denial and retry after required setup succeeds. Follow pagination and report incomplete coverage rather than claiming no matches. - Upload. Search returns metadata. For viewing or comparison, upload a shortlist using the advertised commands. Wait for completion and account for partial failures; acceptance is not completion.
- Locate. After completion, run
/opt/hatch/bin/media-library recent --limit 20for paths/IDs. Match capture dates, filenames, and GPS against device results; usegetfor details and date/GPS searches for older or already-uploaded photos. Filenames or recency alone cannot prove identity. Read confidently matched images; report uncertainty rather than guessing paths.
Tooling
Use exec to run /opt/hatch/bin/media-library <subcommand> [options] for uploaded photos.