match_photo_to_dna
Auto-compensates exposure and white balance in a Color DNA profile to match a target photo, then compiles a tailored Lightroom .xmp preset and optional Before/After comparison.
Instructions
Auto-compensate Exposure and White Balance of a Color DNA profile to match a target photo's lighting,
then compile a tailored .xmp preset and optional Before/After comparison image.
Args: image_path: Path to the target photo (.jpg, .png, .webp). dna_id: Base Color DNA ID from the catalog. output_xmp_path: Destination path for the compiled .xmp file. preset_name: Display name inside Lightroom. slider_overrides: Optional manual slider adjustments applied after auto-matching. preview_output_path: Optional destination path for the Before/After JPEG comparison. catalog_path: Optional custom path to color_dna_catalog.json.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_path": "<image_path>",
"dna_id": "<dna_id>",
"output_xmp_path": "<output_xmp_path>"
},
"name": "match_photo_to_dna"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dna_id | Yes | ||
| image_path | Yes | ||
| preset_name | No | ChromaDNA Matched | |
| catalog_path | No | ||
| output_xmp_path | Yes | ||
| slider_overrides | No | ||
| preview_output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |