get_selected_photos
Retrieve selected photos from Lightroom Classic with IDs and metadata for editing workflows. Use this tool to access photo details and manage catalog selections programmatically.
Instructions
List selected Lightroom photos with IDs and key metadata.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Implementation Reference
- The get_selected_photos tool handler implemented using the @mcp.tool decorator. It validates the limit and calls the underlying catalog command.
@mcp.tool() async def get_selected_photos(limit: int = 200) -> dict[str, Any]: """List selected Lightroom photos with IDs and key metadata.""" limit = max(1, min(int(limit), 1000)) return await _call("catalog.get_selected_photos", {"limit": limit})