Analyze Image
analyze_imageAnalyze images using AI vision models to extract design tokens, evaluate visual hierarchy, or catalog UI components. Accepts URLs, base64 data, and local file paths.
Instructions
Analyze an image using AI vision models. Supports URLs, base64 data, and local file paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Analysis mode: general (default), palette (extract design tokens), hierarchy (analyze visual hierarchy), components (catalog UI components) | |
| prompt | Yes | The prompt describing how you want to compare the images. If the task is **front-end or UI comparison**, the prompt you provide must be: "Compare the given screenshots and describe differences in layout structure, component arrangement, color scheme, typography, and visual hierarchy. Pay attention to common sections such as the navbar, header, footer, and main content areas to identify style or layout inconsistencies." + your additional requirements. For **other tasks**, the prompt you provide must clearly describe what to compare, identify, or analyze between the images. | |
| options | No | ||
| imageSource | Yes | Image source - can be a URL, base64 data (data:image/...), or local file path |