lr_download_photos
Download Lightroom photos as JPEG files by asset IDs or a whole album. Saves at chosen resolution, skips unchanged files on repeat runs, and resumes interrupted downloads.
Instructions
Save photos as JPEG files. Pass either asset_ids or album_id (the whole album). size: '640' | '1280' | '2048' | '2560' | 'fullsize' (original resolution with edits; slower). dest_dir defaults to ~/Downloads/lightroom/. naming: 'file' (default) names files after the original file name with a .jpg extension (IMG_1.jpg, then IMG_1-2.jpg for a second photo with that name); 'id' names them .jpg, which stays the same when a photo is renamed. Switching naming in one folder keeps both copies; each name has its own cache entry. <dest_dir>/.lr-mcp.json records each photo as soon as it is saved, so an interrupted call keeps its progress; on the next call into the same folder, photos whose file, size and edit time are unchanged are skipped. This needs a stable folder: album_id or an explicit dest_dir (asset_ids alone get a new export- folder each time). A .lr-mcp.json.lock file stays next to it. force=True re-downloads everything, e.g. if a saved file looks stale. Each file is written under a temporary name and renamed when complete, so the folder must be writable (in a read-only one every photo fails). A rendition still being generated after a minute, or a failed generation request, gets one more try. After 8 photos in a row fail with network or server errors (not e.g. a 404 for one photo) the rest are not tried, and the reply says how many; call again to continue.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "lr_download_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 2048 | |
| force | No | ||
| naming | No | file | |
| album_id | No | ||
| dest_dir | No | ||
| asset_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |