get_active_photo_file
Retrieve metadata and file details for the currently selected photo in Lightroom Classic to enable automated editing workflows and catalog management.
Instructions
Get active photo metadata plus direct file-inspection details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The `get_active_photo_file` tool handler, which calls `get_active_photo` and then normalizes the result for file inspection. Note that the function definition itself is missing the `@mcp.tool()` decorator, but it is imported for use in tests. Based on the file contents, it seems this might be missing the decorator if it's meant to be an exposed tool, or it's intended as a helper. However, the user asked for the implementation of the tool named "get_active_photo_file".
async def get_active_photo_file() -> dict[str, Any]: """Get active photo metadata plus direct file-inspection details.""" response = await get_active_photo() photo = response.get("photo") if not isinstance(photo, dict): return { **response, "photo": None, } return { **response, "photo": _normalize_photo_for_inspection(photo), }