analyze_image
Check image blob metadata (MIME, size, format) and get optimization and accessibility suggestions before posting.
Instructions
Analyze an image blob's metadata (MIME type, file size in bytes/KB/MB, derived format, and whether it is within optimized-size thresholds) and optionally return human-readable optimization and accessibility suggestions. Does not decode the image, so it cannot report pixel dimensions or aspect ratio. No authentication required. Use upload_image to obtain the blob reference first, then pass it here; prefer this tool over upload_image for pre-flight size checks before actually posting. Subject to per-tool rate limiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blob | Yes | Blob descriptor as returned by upload_image (the `image.blob` object in its output): ref (flat CID string or { "$link": "<cid>" } object), mimeType, and size. | |
| includeOptimizationSuggestions | No | When true (default), the response includes a list of human-readable optimization and accessibility suggestions based on the blob size and MIME type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | True when the analysis completed without errors. | |
| analysis | Yes | Metadata derived from the blob. | |
| suggestions | No | List of human-readable optimization and accessibility suggestions. Present only when includeOptimizationSuggestions is true. |