Skip to main content
Glama

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
NameRequiredDescriptionDefault
destinationYes
local_idsNo
qualityNo

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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/4xiomdev/lightroom-classic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server