addedInput schema / properties / blob / description
Added value: +"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."
addedInput schema / properties / blob / properties / mimeType / description
Added value: +"MIME type of the uploaded blob (e.g. \"image/jpeg\")."
addedInput schema / properties / blob / properties / mimeType / minLength
Added value: +1
removedInput schema / properties / blob / properties / ref / additionalProperties
Removed value: -false
addedInput schema / properties / blob / properties / ref / anyOf
Added value: +[
+ {
+ "description": "CID of the uploaded blob as a flat string (e.g. \"bafkrei…\").",
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Lexicon blob-ref object wrapping the CID as { \"$link\": \"<cid>\" }.",
+ "properties": {
+ "$link": {
+ "description": "CID of the uploaded blob (e.g. \"bafkrei…\").",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "$link"
+ ],
+ "type": "object"
+ }
+]
addedInput schema / properties / blob / properties / ref / description
Added value: +"CID reference of the uploaded blob: either the flat string returned by upload_image, or the lexicon { \"$link\": \"<cid>\" } object form."
removedInput schema / properties / blob / properties / ref / properties
Removed value: -{
- "$link": {
- "type": "string"
- }
-}
removedInput schema / properties / blob / properties / ref / required
Removed value: -[
- "$link"
-]
removedInput schema / properties / blob / properties / ref / type
Removed value: -"object"
addedInput schema / properties / blob / properties / size / description
Added value: +"Size of the uploaded blob in bytes."
addedInput schema / properties / blob / properties / size / exclusiveMinimum
Added value: +0
changedInput schema / properties / blob / properties / size / type
Previous value: -"number"New value: +"integer"
addedInput schema / properties / blob / properties / type
Added value: +{
+ "const": "blob",
+ "description": "Discriminator emitted by upload_image; always \"blob\" when present. May be omitted.",
+ "type": "string"
+}
addedInput schema / properties / includeOptimizationSuggestions / description
Added value: +"When true (default), the response includes a list of human-readable optimization and accessibility suggestions based on the blob size and MIME type."
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "analysis": {
+ "description": "Metadata derived from the blob.",
+ "properties": {
+ "format": {
+ "description": "Format string derived from the MIME type subtype (e.g. \"jpeg\", \"png\", \"webp\").",
+ "type": "string"
+ },
+ "isOptimized": {
+ "description": "True when the blob is within the format-specific size threshold considered optimized for web use.",
+ "type": "boolean"
+ },
+ "mimeType": {
+ "description": "MIME type of the image as declared in the blob (e.g. \"image/jpeg\").",
+ "type": "string"
+ },
+ "size": {
+ "description": "Raw blob size in bytes.",
+ "type": "number"
+ },
+ "sizeKB": {
+ "description": "Blob size converted to kilobytes, rounded to two decimal places.",
+ "type": "number"
+ },
+ "sizeMB": {
+ "description": "Blob size converted to megabytes, rounded to two decimal places.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "mimeType",
+ "size",
+ "sizeKB",
+ "sizeMB",
+ "format",
+ "isOptimized"
+ ],
+ "type": "object"
+ },
+ "success": {
+ "description": "True when the analysis completed without errors.",
+ "type": "boolean"
+ },
+ "suggestions": {
+ "description": "List of human-readable optimization and accessibility suggestions. Present only when includeOptimizationSuggestions is true.",
+ "items": {
+ "description": "A single optimization or accessibility recommendation.",
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "success",
+ "analysis"
+ ],
+ "type": "object"
+}