export_photos
Export edited photos as JPEG files to a specified folder for sharing or backup. Creates the destination folder automatically and applies all development edits during export.
Instructions
Export photos as JPG to a destination folder.
Exports selected photos (or specific local_ids) with all develop edits applied as sRGB JPEG files to the given folder path. Creates the folder if it doesn't exist.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination | Yes | ||
| local_ids | No | ||
| quality | No |
Implementation Reference
- The `export_photos` tool is defined as an async function decorated with `@mcp.tool()`. It handles input validation, constructs a payload, and calls the internal `_call` helper to execute the `catalog.export_photos` command.
@mcp.tool() async def export_photos( destination: str, local_ids: list[int] | None = None, quality: int = 85, ) -> dict[str, Any]: """Export photos as JPG to a destination folder. Exports selected photos (or specific local_ids) with all develop edits applied as sRGB JPEG files to the given folder path. Creates the folder if it doesn't exist. """ if not destination: raise ValueError("destination folder path is required") ids = validate_local_ids(local_ids) payload: dict[str, Any] = { "destination": destination, "quality": max(1, min(100, quality)), } if ids: payload["local_ids"] = ids return await _call("catalog.export_photos", payload, timeout_s=300.0)