{
  "openapi": "3.1.1",
  "info": {
    "title": "Lumina API",
    "version": "1.0.0",
    "summary": "Deterministic tools for people and AI agents.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://lumina.usefulweb.site"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "Catalog of all tools",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Definition of one tool",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "lumina-resize-planner",
                "lumina-print-planner",
                "lumina-color-analyzer",
                "lumina-photo-layout",
                "lumina-image-splitter",
                "lumina-gif-maker",
                "lumina-layer-transform",
                "lumina-blend-mixer",
                "lumina-image-mask",
                "lumina-histogram-analyzer",
                "lumina-tone-processor"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-resize-planner/calculate": {
      "post": {
        "operationId": "calculateLuminaResizePlanner",
        "summary": "Plan a precise crop and output size before resizing a photo.",
        "description": "Calculate a centered crop, final pixel dimensions and scale for a target box. Fit keeps the whole image; fill crops to the requested aspect ratio. Upscaling is optional.\n\nMethodology:\n- Fit uses the smaller target/source scale; fill uses the larger one and a centered crop.\n- When enlargement is disabled, scale is capped at 1. Pixel coordinates and output dimensions are rounded to whole pixels.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_resize_planner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaResizePlannerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Square social photo",
                  "value": {
                    "width": 6000,
                    "height": 4000,
                    "targetWidth": 1080,
                    "targetHeight": 1080,
                    "mode": "cover",
                    "upscale": false
                  }
                },
                "example2": {
                  "summary": "Fit a small photo without enlargement",
                  "value": {
                    "width": 600,
                    "height": 400,
                    "targetWidth": 1920,
                    "targetHeight": 1080,
                    "mode": "contain"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaResizePlannerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-print-planner/calculate": {
      "post": {
        "operationId": "calculateLuminaPrintPlanner",
        "summary": "Find how large your photo can print at your chosen resolution.",
        "description": "Convert image pixel dimensions into print dimensions in inches and centimeters at a specified pixels-per-inch resolution. Compare sizes without uploading the image.\n\nMethodology:\n- Print width in inches equals pixel width divided by PPI. One inch equals 2.54 centimeters.\n- PPI describes image pixel density, not printer dot density. Calculated dimensions do not guarantee print quality.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_print_planner",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaPrintPlannerInput"
              },
              "examples": {
                "example1": {
                  "summary": "24 MP photo at 300 PPI",
                  "value": {
                    "width": 6000,
                    "height": 4000,
                    "ppi": 300
                  }
                },
                "example2": {
                  "summary": "Web image at 150 PPI",
                  "value": {
                    "width": 1920,
                    "height": 1080,
                    "ppi": 150
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaPrintPlannerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-color-analyzer/calculate": {
      "post": {
        "operationId": "calculateLuminaColorAnalyzer",
        "summary": "Check palette luminance and choose readable text for photos and graphics.",
        "description": "Analyze up to 64 six-digit hex colors for relative luminance and contrast against black and white. Use the results to choose watermark or caption colors for opaque backgrounds.\n\nMethodology:\n- Convert sRGB components to linear light and calculate relative luminance using coefficients 0.2126, 0.7152 and 0.0722.\n- Contrast ratio is (lighter luminance + 0.05) / (darker luminance + 0.05). Choose black or white by the larger ratio.\n- A single color cannot certify text over an entire photograph. Check the actual text area and opacity.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_color_analyzer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaColorAnalyzerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Alpine color palette",
                  "value": {
                    "colors": "#164e63 #c5d6a5 #f4e6cf"
                  }
                },
                "example2": {
                  "summary": "Black and white extremes",
                  "value": {
                    "colors": "#000000 #ffffff"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaColorAnalyzerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-photo-layout/calculate": {
      "post": {
        "operationId": "calculateLuminaPhotoLayout",
        "summary": "Make a photo grid or join photos horizontally and vertically.",
        "description": "Upload photos in a ZIP to compose a collage, a contact-sheet grid, or a continuous horizontal or vertical strip. Control spacing, margins, fit and background, then download a PNG, JPEG or WebP.\n\nMethodology:\n- Images are detected by content, auto-oriented and converted to sRGB. ZIP entries keep their archive order.\n- The same integer layout geometry powers Lumina Photo Lab. Fill crops from the center; fit adds the selected background.\n- Contact mode places a small numbered index in each reserved caption strip; the browser Photo Lab also supports filename captions.\n- Canvas limit: 16 MP and 16000 px per side. Metadata is stripped. Download artifacts expire after about two hours.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_photo_layout",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaPhotoLayoutInput"
              },
              "examples": {
                "example1": {
                  "summary": "Single-image gallery canvas",
                  "value": {
                    "images": {
                      "filename": "sample.png",
                      "contentType": "image/png",
                      "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"
                    },
                    "width": 320,
                    "height": 240,
                    "gap": 8,
                    "margin": 16,
                    "columns": 2,
                    "mode": "grid"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaPhotoLayoutResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-image-splitter/calculate": {
      "post": {
        "operationId": "calculateLuminaImageSplitter",
        "summary": "Slice a photo into numbered tiles without losing edge pixels.",
        "description": "Split one image into a row-and-column grid and download every tile as a PNG in one ZIP. Uneven dimensions are distributed across the tiles so the complete photo can be reconstructed.\n\nMethodology:\n- The source is auto-oriented. Integer boundaries use floor(index × size / count), ensuring no gaps, overlaps or missing edge pixels.\n- At most 64 nonempty tiles; original decoded photo limited to 16 MP. ZIP names encode row and column.\n- Outputs are PNGs with original EXIF/GPS removed. The ZIP includes a JSON manifest with the exact tile coordinates.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_image_splitter",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaImageSplitterInput"
              },
              "examples": {
                "example1": {
                  "summary": "Three-by-three tiles",
                  "value": {
                    "images": {
                      "filename": "sample.png",
                      "contentType": "image/png",
                      "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"
                    },
                    "rows": 3,
                    "columns": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaImageSplitterResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-gif-maker/calculate": {
      "post": {
        "operationId": "calculateLuminaGifMaker",
        "summary": "Turn an ordered set of photos into a looping animated GIF.",
        "description": "Upload a ZIP of photos, choose frame dimensions, timing and fit, and download an animated GIF. A shared deterministic encoder uses a fixed 256-color palette, with no external service.\n\nMethodology:\n- Archive entry order is playback order. Each image is auto-oriented, centered, resized and flattened on the chosen background.\n- Frame duration is rounded to the GIF time unit of 10 milliseconds. The limit is 24 frames and 12 million total frame pixels.\n- GIF uses a fixed RGB332 palette (256 colors), no transparency and no adaptive photographic quantization. File sizes may be larger than optimized GIF encoders.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_gif_maker",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaGifMakerInput"
              },
              "examples": {
                "example1": {
                  "summary": "One-frame GIF",
                  "value": {
                    "images": {
                      "filename": "sample.png",
                      "contentType": "image/png",
                      "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"
                    },
                    "width": 32,
                    "height": 32,
                    "delay": 200
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaGifMakerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-layer-transform/calculate": {
      "post": {
        "operationId": "calculateLuminaLayerTransform",
        "summary": "Calculate a layer transform, rotated corners and canvas bounds.",
        "description": "Enter canvas and layer dimensions, center position, rotation and flips. Get the affine matrix for normalized layer coordinates plus exact corner and bounding-box coordinates.\n\nMethodology:\n- For layer-local coordinates u/v from 0 to 1, canvas x = a*u + c*v + e and y = b*u + d*v + f.\n- The layer rotates around its center. Flips apply in local space before rotation. Coordinates outside the canvas are retained.\n- The same affine transform is used by Design Layers for selection, dragging and mask coordinates.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_layer_transform",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaLayerTransformInput"
              },
              "examples": {
                "example1": {
                  "summary": "A rotated photo on a cover",
                  "value": {
                    "canvasWidth": 1000,
                    "canvasHeight": 700,
                    "width": 600,
                    "height": 400,
                    "x": 500,
                    "y": 350,
                    "rotation": 20
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaLayerTransformResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-blend-mixer/calculate": {
      "post": {
        "operationId": "calculateLuminaBlendMixer",
        "summary": "Preview eight blend modes and opacity for two opaque colors.",
        "description": "Mix a source HEX color over a backdrop using normal, multiply, screen, overlay, darken, lighten, difference or exclusion. Calculate the final sRGB color at a chosen layer opacity.\n\nMethodology:\n- Separable blend formulas operate on normalized sRGB channel values. Source-over with an opaque backdrop is (1 − opacity) × backdrop + opacity × blend(backdrop,source).\n- Results round to 8-bit RGB. This calculator assumes opaque colors; image layer alpha is additionally handled by the browser compositor.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_blend_mixer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaBlendMixerInput"
              },
              "examples": {
                "example1": {
                  "summary": "A gentle green multiply tint",
                  "value": {
                    "backdrop": "#c8d6bd",
                    "source": "#426a60",
                    "opacity": 60,
                    "mode": "multiply"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaBlendMixerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-image-mask/calculate": {
      "post": {
        "operationId": "calculateLuminaImageMask",
        "summary": "Clip a photo into a soft rectangle or ellipse with PNG transparency.",
        "description": "Upload a photo and apply a rectangular or elliptical alpha mask with adjustable bounds, inward feathering and inversion. Download a transparent PNG while preserving the original image dimensions.\n\nMethodology:\n- The source is auto-oriented and converted to sRGB. Its existing alpha is multiplied by mask coverage. Source dimensions are preserved; metadata is stripped.\n- Rectangle distance uses the nearest edge; ellipse distance uses normalized radial distance scaled by the smaller radius. Feather transitions inward with smoothstep; it approximates distance for noncircular ellipses.\n- Inputs are limited to 4 MP. GIF uses its first frame. This is a geometric mask, not automatic subject detection. The browser Design Layers mode uses the same mask engine.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_image_mask",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaImageMaskInput"
              },
              "examples": {
                "example1": {
                  "summary": "A circular transparent cutout",
                  "value": {
                    "image": {
                      "filename": "sample.png",
                      "contentType": "image/png",
                      "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"
                    },
                    "shape": "ellipse",
                    "feather": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaImageMaskResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-histogram-analyzer/calculate": {
      "post": {
        "operationId": "calculateLuminaHistogramAnalyzer",
        "summary": "Inspect RGB histograms, clipped channels and tonal percentiles in a photo.",
        "description": "Upload a photo to measure luminance and RGB distributions, shadow and highlight clipping, and tonal percentiles. Download the full 256-bin analysis and get percentile-based black and white starting points.\n\nMethodology:\n- Auto-oriented, display-referred 8-bit sRGB analysis. Fully transparent pixels are excluded; other pixels count equally.\n- Luma is rounded 0.2126 R + 0.7152 G + 0.0722 B. Clipping counts any channel at or below 2, or at or above 253. This does not measure sensor exposure or recover clipped RAW data.\n- Report 1st, 50th and 99th luminance percentiles using nearest-rank selection. Suggested levels discard 0.5% from each luminance tail; flat or empty images retain 0–255. Values are suggestions, not an exposure judgment.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_histogram_analyzer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaHistogramAnalyzerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Inspect a red image",
                  "value": {
                    "image": {
                      "filename": "sample.png",
                      "contentType": "image/png",
                      "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaHistogramAnalyzerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lumina-tone-processor/calculate": {
      "post": {
        "operationId": "calculateLuminaToneProcessor",
        "summary": "Apply levels, RGB curves and white balance, or reuse a Lumina photo profile.",
        "description": "Develop a photo with black and white points, gamma, five-point master and RGB curves, and linear-light white-balance gains. Download a transparent PNG and reusable settings profile, or paste a profile saved from Lumina.\n\nMethodology:\n- Auto-oriented, display-referred 8-bit sRGB analysis. Fully transparent pixels are excluded; other pixels count equally.\n- Luma is rounded 0.2126 R + 0.7152 G + 0.0722 B. Clipping counts any channel at or below 2, or at or above 253. This does not measure sensor exposure or recover clipped RAW data.\n- A supplied Lumina profile overrides all manual fields. Otherwise apply linear-light RGB gains, existing Develop exposure/contrast/saturation, encoded-sRGB levels and gamma, master curve, then channel curves. Five fixed inputs are interpolated with straight segments; outputs may be non-monotonic.\n- Gamma uses normalizedInput^(1/gamma). PNG retains the source alpha and omits source metadata. Profiles contain only adjustments and tone settings; camera PP3, RAW and ICC profiles are not supported.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lumina_tone_processor",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LuminaToneProcessorInput"
              },
              "examples": {
                "example1": {
                  "summary": "Gentle contrast curve",
                  "value": {
                    "image": {
                      "filename": "sample.png",
                      "contentType": "image/png",
                      "contentBase64": "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"
                    },
                    "master": "0,50,128,206,255"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LuminaToneProcessorResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Multi-tool workflows",
        "responses": {
          "200": {
            "description": "Workflow list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "LuminaResizePlannerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "width": {
            "title": "Source width (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "default": 6000
          },
          "height": {
            "title": "Source height (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "default": 4000
          },
          "targetWidth": {
            "title": "Target width (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "default": 1080
          },
          "targetHeight": {
            "title": "Target height (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "default": 1080
          },
          "mode": {
            "title": "Fit mode",
            "type": "string",
            "enum": [
              "contain",
              "cover"
            ],
            "default": "cover"
          },
          "upscale": {
            "title": "Allow enlargement",
            "type": "boolean",
            "default": false
          }
        },
        "required": []
      },
      "LuminaResizePlannerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "scale",
              "crop",
              "megapixels",
              "upscaled"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "scale": {
                "type": "number"
              },
              "megapixels": {
                "type": "number"
              },
              "upscaled": {
                "type": "boolean"
              },
              "crop": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "x",
                  "y",
                  "width",
                  "height"
                ],
                "properties": {
                  "x": {
                    "type": "integer"
                  },
                  "y": {
                    "type": "integer"
                  },
                  "width": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaPrintPlannerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "width": {
            "title": "Photo width (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "default": 6000
          },
          "height": {
            "title": "Photo height (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "default": 4000
          },
          "ppi": {
            "title": "Print resolution (PPI)",
            "type": "integer",
            "minimum": 1,
            "maximum": 2400,
            "default": 300
          }
        },
        "required": []
      },
      "LuminaPrintPlannerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "widthInches",
              "heightInches",
              "widthCm",
              "heightCm",
              "ppi",
              "megapixels"
            ],
            "properties": {
              "widthInches": {
                "type": "number"
              },
              "heightInches": {
                "type": "number"
              },
              "widthCm": {
                "type": "number"
              },
              "heightCm": {
                "type": "number"
              },
              "ppi": {
                "type": "number"
              },
              "megapixels": {
                "type": "number"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaColorAnalyzerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "colors": {
            "title": "Hex colors (comma or space separated)",
            "type": "string",
            "maxLength": 1024,
            "default": "#164e63 #c5d6a5 #f4e6cf"
          }
        },
        "required": []
      },
      "LuminaColorAnalyzerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "colors"
            ],
            "properties": {
              "colors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "hex",
                    "luminance",
                    "contrastBlack",
                    "contrastWhite",
                    "textColor"
                  ],
                  "properties": {
                    "hex": {
                      "type": "string"
                    },
                    "luminance": {
                      "type": "number"
                    },
                    "contrastBlack": {
                      "type": "number"
                    },
                    "contrastWhite": {
                      "type": "number"
                    },
                    "textColor": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaPhotoLayoutInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "images": {
            "title": "Photo or ZIP of photos",
            "description": "Up to 24 PNG, JPEG, WebP or GIF images (first frame). ZIP order is preserved. Decoded total: 32 MP; each photo: 16 MP. Upload as {filename, contentType?, contentBase64}. Max 78125 KiB. Accepts .zip,.png,.jpg,.jpeg,.webp,.gif.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "mode": {
            "title": "Layout",
            "type": "string",
            "enum": [
              "grid",
              "contact",
              "horizontal",
              "vertical"
            ],
            "default": "grid"
          },
          "width": {
            "title": "Canvas width (px)",
            "type": "integer",
            "minimum": 32,
            "maximum": 16000,
            "default": 1600
          },
          "height": {
            "title": "Grid height (px; joins calculate this)",
            "type": "integer",
            "minimum": 32,
            "maximum": 16000,
            "default": 1200
          },
          "columns": {
            "title": "Grid columns",
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "default": 3
          },
          "gap": {
            "title": "Gap (px)",
            "type": "integer",
            "minimum": 0,
            "maximum": 200,
            "default": 16
          },
          "margin": {
            "title": "Margin (px)",
            "type": "integer",
            "minimum": 0,
            "maximum": 200,
            "default": 24
          },
          "fit": {
            "title": "Photo fit",
            "type": "string",
            "enum": [
              "cover",
              "contain"
            ],
            "default": "cover"
          },
          "background": {
            "title": "Background (#RRGGBB)",
            "type": "string",
            "maxLength": 7,
            "default": "#ffffff"
          },
          "format": {
            "title": "Output",
            "type": "string",
            "enum": [
              "png",
              "jpeg",
              "webp"
            ],
            "default": "png"
          }
        },
        "required": [
          "images"
        ]
      },
      "LuminaPhotoLayoutResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "photos",
              "skipped",
              "artifact"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "photos": {
                "type": "integer"
              },
              "skipped": {
                "type": "integer"
              },
              "artifact": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaImageSplitterInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "images": {
            "title": "Single photo (PNG, JPEG, WebP or GIF)",
            "description": "Up to 24 PNG, JPEG, WebP or GIF images (first frame). ZIP order is preserved. Decoded total: 32 MP; each photo: 16 MP. Upload as {filename, contentType?, contentBase64}. Max 78125 KiB. Accepts .zip,.png,.jpg,.jpeg,.webp,.gif.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "rows": {
            "title": "Rows",
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "default": 3
          },
          "columns": {
            "title": "Columns",
            "type": "integer",
            "minimum": 1,
            "maximum": 12,
            "default": 3
          }
        },
        "required": [
          "images"
        ]
      },
      "LuminaImageSplitterResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "tiles",
              "artifact"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "tiles": {
                "type": "integer"
              },
              "artifact": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaGifMakerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "images": {
            "title": "Photo or ZIP of photos",
            "description": "Up to 24 PNG, JPEG, WebP or GIF images (first frame). ZIP order is preserved. Decoded total: 32 MP; each photo: 16 MP. Upload as {filename, contentType?, contentBase64}. Max 78125 KiB. Accepts .zip,.png,.jpg,.jpeg,.webp,.gif.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "width": {
            "title": "Frame width (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 1600,
            "default": 640
          },
          "height": {
            "title": "Frame height (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 1600,
            "default": 480
          },
          "delay": {
            "title": "Milliseconds per frame",
            "type": "integer",
            "minimum": 20,
            "maximum": 10000,
            "default": 500
          },
          "loop": {
            "title": "Repeat forever",
            "type": "boolean",
            "default": true
          },
          "fit": {
            "title": "Photo fit",
            "type": "string",
            "enum": [
              "cover",
              "contain"
            ],
            "default": "cover"
          },
          "background": {
            "title": "Background (#RRGGBB)",
            "type": "string",
            "maxLength": 7,
            "default": "#ffffff"
          }
        },
        "required": [
          "images"
        ]
      },
      "LuminaGifMakerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "frames",
              "durationMs",
              "artifact"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "frames": {
                "type": "integer"
              },
              "durationMs": {
                "type": "integer"
              },
              "artifact": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaLayerTransformInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "canvasWidth": {
            "title": "Canvas width (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 4000,
            "default": 1000
          },
          "canvasHeight": {
            "title": "Canvas height (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 4000,
            "default": 700
          },
          "width": {
            "title": "Layer width (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 4000,
            "default": 600
          },
          "height": {
            "title": "Layer height (px)",
            "type": "integer",
            "minimum": 1,
            "maximum": 4000,
            "default": 400
          },
          "x": {
            "title": "Layer center X (px)",
            "type": "number",
            "minimum": -8000,
            "maximum": 8000,
            "default": 500
          },
          "y": {
            "title": "Layer center Y (px)",
            "type": "number",
            "minimum": -8000,
            "maximum": 8000,
            "default": 350
          },
          "rotation": {
            "title": "Rotation (degrees)",
            "type": "number",
            "minimum": -180,
            "maximum": 180,
            "default": 20
          },
          "flipX": {
            "title": "Flip horizontally",
            "type": "boolean",
            "default": false
          },
          "flipY": {
            "title": "Flip vertically",
            "type": "boolean",
            "default": false
          }
        },
        "required": []
      },
      "LuminaLayerTransformResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "matrix",
              "corners",
              "bounds"
            ],
            "properties": {
              "matrix": {
                "type": "array",
                "minItems": 6,
                "maxItems": 6,
                "items": {
                  "type": "number"
                }
              },
              "corners": {
                "type": "array",
                "minItems": 4,
                "maxItems": 4,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "x",
                    "y"
                  ],
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  }
                }
              },
              "bounds": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom",
                  "width",
                  "height"
                ],
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  },
                  "width": {
                    "type": "number"
                  },
                  "height": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaBlendMixerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "backdrop": {
            "title": "Backdrop HEX",
            "type": "string",
            "maxLength": 7,
            "default": "#c8d6bd"
          },
          "source": {
            "title": "Source HEX",
            "type": "string",
            "maxLength": 7,
            "default": "#426a60"
          },
          "opacity": {
            "title": "Source opacity (%)",
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "default": 60
          },
          "mode": {
            "title": "Blend mode",
            "type": "string",
            "enum": [
              "normal",
              "multiply",
              "screen",
              "overlay",
              "darken",
              "lighten",
              "difference",
              "exclusion"
            ],
            "default": "multiply"
          }
        },
        "required": []
      },
      "LuminaBlendMixerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "hex",
              "r",
              "g",
              "b",
              "opacity",
              "mode"
            ],
            "properties": {
              "hex": {
                "type": "string"
              },
              "r": {
                "type": "integer"
              },
              "g": {
                "type": "integer"
              },
              "b": {
                "type": "integer"
              },
              "opacity": {
                "type": "number"
              },
              "mode": {
                "type": "string"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaImageMaskInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "image": {
            "title": "Photo (PNG, JPEG, WebP or GIF)",
            "type": "object",
            "description": "Upload as {filename, contentType?, contentBase64}. Max 11719 KiB. Accepts .png,.jpg,.jpeg,.webp,.gif.",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "shape": {
            "title": "Mask shape",
            "type": "string",
            "enum": [
              "ellipse",
              "rect"
            ],
            "default": "ellipse"
          },
          "x": {
            "title": "Mask left (%)",
            "type": "number",
            "minimum": 0,
            "maximum": 99,
            "default": 0
          },
          "y": {
            "title": "Mask top (%)",
            "type": "number",
            "minimum": 0,
            "maximum": 99,
            "default": 0
          },
          "width": {
            "title": "Mask width (%)",
            "type": "number",
            "minimum": 1,
            "maximum": 100,
            "default": 100
          },
          "height": {
            "title": "Mask height (%)",
            "type": "number",
            "minimum": 1,
            "maximum": 100,
            "default": 100
          },
          "feather": {
            "title": "Inward feather (normalized %)",
            "type": "number",
            "minimum": 0,
            "maximum": 25,
            "default": 0
          },
          "invert": {
            "title": "Invert mask",
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "image"
        ]
      },
      "LuminaImageMaskResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "artifact"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "artifact": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaHistogramAnalyzerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "image": {
            "title": "Image (PNG, JPEG or WebP; up to 8 MB and 16 MP)",
            "type": "object",
            "description": "Upload as {filename, contentType?, contentBase64}. Max 7813 KiB. Accepts .png,.jpg,.jpeg,.webp.",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "image"
        ]
      },
      "LuminaHistogramAnalyzerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "analysis",
              "suggestedLevels"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "analysis": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "bins",
                  "visible",
                  "transparent",
                  "mean",
                  "shadow",
                  "highlight",
                  "shadowPercent",
                  "highlightPercent",
                  "p01",
                  "median",
                  "p99"
                ],
                "properties": {
                  "bins": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "luminance",
                      "red",
                      "green",
                      "blue"
                    ],
                    "properties": {
                      "luminance": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      },
                      "red": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      },
                      "green": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      },
                      "blue": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "visible": {
                    "type": "integer"
                  },
                  "transparent": {
                    "type": "integer"
                  },
                  "mean": {
                    "type": "number"
                  },
                  "shadow": {
                    "type": "integer"
                  },
                  "highlight": {
                    "type": "integer"
                  },
                  "shadowPercent": {
                    "type": "number"
                  },
                  "highlightPercent": {
                    "type": "number"
                  },
                  "p01": {
                    "type": "integer"
                  },
                  "median": {
                    "type": "integer"
                  },
                  "p99": {
                    "type": "integer"
                  }
                }
              },
              "suggestedLevels": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "black",
                  "white"
                ],
                "properties": {
                  "black": {
                    "type": "integer"
                  },
                  "white": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LuminaToneProcessorInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "image": {
            "title": "Image (PNG, JPEG or WebP; up to 8 MB and 16 MP)",
            "type": "object",
            "description": "Upload as {filename, contentType?, contentBase64}. Max 7813 KiB. Accepts .png,.jpg,.jpeg,.webp.",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "profile": {
            "title": "Lumina profile JSON (optional; overrides all manual fields)",
            "type": "string",
            "maxLength": 64000,
            "default": ""
          },
          "black": {
            "title": "Input black",
            "type": "number",
            "minimum": 0,
            "maximum": 254,
            "default": 0
          },
          "white": {
            "title": "Input white",
            "type": "number",
            "minimum": 1,
            "maximum": 255,
            "default": 255
          },
          "gamma": {
            "title": "Midtone gamma",
            "type": "number",
            "minimum": 0.2,
            "maximum": 5,
            "default": 1
          },
          "exposure": {
            "title": "Exposure (EV)",
            "type": "number",
            "minimum": -3,
            "maximum": 3,
            "default": 0
          },
          "contrast": {
            "title": "Contrast",
            "type": "number",
            "minimum": -100,
            "maximum": 100,
            "default": 0
          },
          "saturation": {
            "title": "Saturation",
            "type": "number",
            "minimum": -100,
            "maximum": 100,
            "default": 0
          },
          "redGain": {
            "title": "Red linear-light gain",
            "type": "number",
            "minimum": 0.25,
            "maximum": 4,
            "default": 1
          },
          "greenGain": {
            "title": "Green linear-light gain",
            "type": "number",
            "minimum": 0.25,
            "maximum": 4,
            "default": 1
          },
          "blueGain": {
            "title": "Blue linear-light gain",
            "type": "number",
            "minimum": 0.25,
            "maximum": 4,
            "default": 1
          },
          "master": {
            "title": "Master curve outputs at 0,64,128,192,255",
            "type": "string",
            "maxLength": 40,
            "default": "0,64,128,192,255"
          },
          "red": {
            "title": "Red curve outputs at 0,64,128,192,255",
            "type": "string",
            "maxLength": 40,
            "default": "0,64,128,192,255"
          },
          "green": {
            "title": "Green curve outputs at 0,64,128,192,255",
            "type": "string",
            "maxLength": 40,
            "default": "0,64,128,192,255"
          },
          "blue": {
            "title": "Blue curve outputs at 0,64,128,192,255",
            "type": "string",
            "maxLength": 40,
            "default": "0,64,128,192,255"
          }
        },
        "required": [
          "image"
        ]
      },
      "LuminaToneProcessorResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "width",
              "height",
              "artifact",
              "profile",
              "analysis"
            ],
            "properties": {
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "artifact": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              },
              "profile": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "format",
                  "version",
                  "name",
                  "adjustments",
                  "development"
                ],
                "properties": {
                  "format": {
                    "const": "lumina-profile"
                  },
                  "version": {
                    "const": 1
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "adjustments": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "exposure",
                      "contrast",
                      "highlights",
                      "shadows",
                      "temperature",
                      "tint",
                      "saturation",
                      "vibrance",
                      "fade",
                      "vignette",
                      "sharpen",
                      "denoise"
                    ],
                    "properties": {
                      "exposure": {
                        "type": "number",
                        "minimum": -3,
                        "maximum": 3
                      },
                      "contrast": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "highlights": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "shadows": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "temperature": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "tint": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "saturation": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "vibrance": {
                        "type": "number",
                        "minimum": -100,
                        "maximum": 100
                      },
                      "fade": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "vignette": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "sharpen": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "denoise": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      }
                    }
                  },
                  "development": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "black",
                      "white",
                      "gamma",
                      "gains",
                      "curves"
                    ],
                    "properties": {
                      "black": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 254
                      },
                      "white": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 255
                      },
                      "gamma": {
                        "type": "number",
                        "minimum": 0.2,
                        "maximum": 5
                      },
                      "gains": {
                        "type": "array",
                        "minItems": 3,
                        "maxItems": 3,
                        "items": {
                          "type": "number",
                          "minimum": 0.25,
                          "maximum": 4
                        }
                      },
                      "curves": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "master",
                          "red",
                          "green",
                          "blue"
                        ],
                        "properties": {
                          "master": {
                            "type": "array",
                            "minItems": 5,
                            "maxItems": 5,
                            "items": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 255
                            }
                          },
                          "red": {
                            "type": "array",
                            "minItems": 5,
                            "maxItems": 5,
                            "items": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 255
                            }
                          },
                          "green": {
                            "type": "array",
                            "minItems": 5,
                            "maxItems": 5,
                            "items": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 255
                            }
                          },
                          "blue": {
                            "type": "array",
                            "minItems": 5,
                            "maxItems": 5,
                            "items": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 255
                            }
                          }
                        }
                      },
                      "hsl": {
                        "type": "object",
                        "additionalProperties": false,
                        "description": "Optional HSL color mixer. Bands: reds, oranges, yellows, greens, aquas, blues, purples, magentas. Hue ±100 = ±30°, saturation and luminance −100…100.",
                        "properties": {
                          "hue": {
                            "type": "array",
                            "minItems": 8,
                            "maxItems": 8,
                            "items": {
                              "type": "number",
                              "minimum": -100,
                              "maximum": 100
                            }
                          },
                          "saturation": {
                            "type": "array",
                            "minItems": 8,
                            "maxItems": 8,
                            "items": {
                              "type": "number",
                              "minimum": -100,
                              "maximum": 100
                            }
                          },
                          "luminance": {
                            "type": "array",
                            "minItems": 8,
                            "maxItems": 8,
                            "items": {
                              "type": "number",
                              "minimum": -100,
                              "maximum": 100
                            }
                          }
                        }
                      }
                    }
                  }
                }
              },
              "analysis": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "bins",
                  "visible",
                  "transparent",
                  "mean",
                  "shadow",
                  "highlight",
                  "shadowPercent",
                  "highlightPercent",
                  "p01",
                  "median",
                  "p99"
                ],
                "properties": {
                  "bins": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "luminance",
                      "red",
                      "green",
                      "blue"
                    ],
                    "properties": {
                      "luminance": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      },
                      "red": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      },
                      "green": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      },
                      "blue": {
                        "type": "array",
                        "minItems": 256,
                        "maxItems": 256,
                        "items": {
                          "type": "integer"
                        }
                      }
                    }
                  },
                  "visible": {
                    "type": "integer"
                  },
                  "transparent": {
                    "type": "integer"
                  },
                  "mean": {
                    "type": "number"
                  },
                  "shadow": {
                    "type": "integer"
                  },
                  "highlight": {
                    "type": "integer"
                  },
                  "shadowPercent": {
                    "type": "number"
                  },
                  "highlightPercent": {
                    "type": "number"
                  },
                  "p01": {
                    "type": "integer"
                  },
                  "median": {
                    "type": "integer"
                  },
                  "p99": {
                    "type": "integer"
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}