get_selected_photo_files
Retrieve file details for photos selected in Lightroom Classic to inspect metadata and properties for editing workflows.
Instructions
List selected Lightroom photos with direct file-inspection details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Implementation Reference
- The `get_selected_photo_files` function is implemented here as an MCP tool. It retrieves selected photos and enhances them with file-inspection details using `_normalize_photo_for_inspection`.
async def get_selected_photo_files(limit: int = 200) -> dict[str, Any]: """List selected Lightroom photos with direct file-inspection details.""" response = await get_selected_photos(limit=limit) photos = response.get("photos") if not isinstance(photos, list): return { **response, "photos": [], } return { **response, "photos": [ _normalize_photo_for_inspection(photo) for photo in photos if isinstance(photo, dict) ], }