analyze_layout
Analyze screenshot layouts to identify assets, detect patterns, and calculate spatial relationships for semantic CSS reconstruction.
Instructions
Analyze the layout of assets in a screenshot. Finds all assets, identifies the center/hero element, calculates relative positions (angle and distance from center), and detects the layout pattern (radial, grid, or freeform). Returns structured data for rebuilding the layout with semantic CSS.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screenshot_path | Yes | Absolute path to the screenshot image file | |
| asset_paths | Yes | List of absolute paths to asset images to find | |
| threshold | No | Match confidence threshold (0-1). Default 0.8 |