analyze_optical_profile
Extract physical optical metrics (CCT, light vector, luminance range) and optionally decompose an image into 6 analytical layers for lighting diagnostics.
Instructions
Extract physical optical metrics from an image, including Correlated Color Temperature (CCT in Kelvin), dominant 3D lighting vector (azimuth and elevation angles), photometric luminance dynamic range, contrast zones, surface normal roughness index, and optionally decompose into 6 analytical image layers in Layers/ directory.
• Purpose: Diagnostic optical extraction and 6-layer decomposition (Highlights, Shadows, Ambient Occlusion, Edges, Depth Normals, Chroma/Saturation). Unlike 'generate_relight_variations' which creates artistic relit renders, this tool extracts physical diagnostic metrics and visual analytical decomposition layers. • Behavior: Read-only by default; writes 6 analytical layer PNGs and Layer.md to the specified directory when 'extract_layers' is true. Unmetered local execution, zero network egress, zero external auth. • When to use: Use as the prerequisite first step to inspect baseline lighting conditions or generate the 6 diagnostic layers into Layers/ before relighting or prompting. • When NOT to use: Do NOT use if you need creative relighted styles (use 'generate_relight_variations'), if merging a cutout into a scene (use 'harmonize_composite'), or if you only need generative AI prompt synthesis (use 'synthesize_diffusion_prompt'). • Alternatives: Use 'generate_relight_variations' for creative lighting styles, or 'synthesize_diffusion_prompt' for model prompts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Absolute or workspace-relative path to a local image file (.png, .jpg, or .jpeg). Must be an existing image under 50 MB. | |
| layers_dir | No | Optional target directory to store the 6 analytical layer images and Layer.md (defaults to 'Layers'). | |
| user_intent | No | Optional creative or corrective intent to dynamically tailor layer diagnostics, recommendations, and diffusion prompts. | |
| extract_layers | No | If true, decomposes image into 6 analytical layers (Highlights, Shadows, Ambient Occlusion, Edges, Depth Normals, Chroma/Saturation) saved to Layers/ directory and generates Layer.md. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes | Execution status. | |
| summary | Yes | Human-readable executive summary of the operation. | |
| evidence | Yes | ||
| warnings | Yes | Non-fatal warnings if applicable. | |
| nextActions | Yes | Actionable follow-up guidance. |