{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Create a CF Images variant that allows you to resize images for different use cases.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/images_account_identifier"}},"required":["account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/images_image_variant_definition"}},"required":["path","body"],"additionalProperties":false,"definitions":{"images_account_identifier":{"description":"Account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"images_image_variant_definition":{"type":"object","properties":{"id":{"$ref":"#/definitions/images_image_variant_identifier"},"neverRequireSignedURLs":{"$ref":"#/definitions/images_image_variant_neverRequireSignedURLs"},"options":{"$ref":"#/definitions/images_image_variant_options"}},"required":["id","options"]},"images_image_variant_identifier":{"type":"string","maxLength":99,"pattern":"^[a-zA-Z0-9]+$","examples":["hero"]},"images_image_variant_neverRequireSignedURLs":{"description":"Indicates whether the variant can access an image without a signature, regardless of image access control.","type":"boolean","default":false,"examples":[true]},"images_image_variant_options":{"description":"Allows you to define image resizing sizes for different use cases.","type":"object","properties":{"fit":{"$ref":"#/definitions/images_image_variant_fit"},"height":{"$ref":"#/definitions/images_image_variant_height"},"metadata":{"$ref":"#/definitions/images_image_variant_schemas_metadata"},"width":{"$ref":"#/definitions/images_image_variant_width"}},"required":["fit","metadata","width","height"]},"images_image_variant_fit":{"description":"The fit property describes how the width and height dimensions should be interpreted.","type":"string","enum":["scale-down","contain","cover","crop","pad"],"examples":["scale-down"]},"images_image_variant_height":{"description":"Maximum height in image pixels.","type":"number","minimum":1,"examples":[768]},"images_image_variant_schemas_metadata":{"description":"What EXIF data should be preserved in the output image.","type":"string","enum":["keep","copyright","none"],"examples":["none"]},"images_image_variant_width":{"description":"Maximum width in image pixels.","type":"number","minimum":1,"examples":[1366]}}},"name":"Create a variant","id":"cloudflare.cloudflare-images-variants-create-a-variant","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{"id":"hero","options":{"fit":"scale-down","metadata":"none","width":1366,"height":768}}},"maxRequests":1,"summary":false}}