genart.dev
MCP ToolsArtist & Critique

analyze_reference

Return structured analysis framework for a reference.

Input Schema

ParameterTypeRequiredDescription
referenceIdstringYesID of the reference to analyze.
seriesIdstringNoID of the series the reference belongs to.
sketchIdstringNoID of the sketch the reference is attached to.
previewSizenumberNoSize in pixels for the reference preview image.

Output Shape

{
  "referenceId": "ref-hk4701",
  "preview": "<base64 image>",
  "analysis": {
    "composition": "...",
    "palette": "...",
    "rhythm": "...",
    "mood": "...",
    "technique": "...",
    "keyQualities": ["..."]
  }
}

Side Effects

  • Generates a preview image of the reference at the requested size.

Error Cases

ErrorCause
Reference not foundThe provided referenceId does not match any stored reference.
Series not foundThe provided seriesId does not match any existing series.
Sketch not foundThe provided sketchId does not match any saved sketch.

Golden Path Example

Request

{
  "referenceId": "ref-hk4701",
  "seriesId": "series-e7f2a1",
  "previewSize": 400
}

Response

{
  "referenceId": "ref-hk4701",
  "preview": "<base64 image>",
  "analysis": {
    "composition": "Central radial symmetry with concentric rings. The eye is drawn inward.",
    "palette": "Warm yellows and oranges dominate, with cool blue accents at the periphery.",
    "rhythm": "Concentric repetition creates a pulsing, meditative rhythm.",
    "mood": "Contemplative and spiritual. A sense of unfolding or revelation.",
    "technique": "Flat color fields with precise geometric boundaries. Minimal blending.",
    "keyQualities": ["radial symmetry", "flat color", "spiritual geometry", "warm-cool contrast"]
  }
}