create_virtual_copy
Create virtual copies of photos in Lightroom Classic to experiment with edits while preserving original files. Use this tool to apply different adjustments to the same image without duplicating storage.
Instructions
Create virtual copies of selected photos or specific local_ids.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_ids | No |
Implementation Reference
- The create_virtual_copy tool handler, decorated with @mcp.tool(), which validates local IDs and calls the underlying Lightroom catalog API.
@mcp.tool() async def create_virtual_copy(local_ids: list[int] | None = None) -> dict[str, Any]: """Create virtual copies of selected photos or specific local_ids.""" ids = validate_local_ids(local_ids) payload: dict[str, Any] = {} if ids: payload["local_ids"] = ids return await _call("catalog.create_virtual_copy", payload)