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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_virtual_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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)