genart.dev
MCP ToolsArtist & Critique

add_reference

Import image as reference for inspiration.

Input Schema

ParameterTypeRequiredDescription
imagestringYesFile path or URL of the image to import as a reference.
type"image" | "artwork" | "photograph" | "texture" | "palette"NoClassification of the reference material.
sourcestringNoAttribution or source description for the reference.
seriesIdstringNoID of the series to attach the reference to.
sketchIdstringNoID of a specific sketch to attach the reference to.
idstringNoCustom ID for the reference. Auto-generated if omitted.

Output Shape

{
  "referenceId": "ref-abc123",
  "type": "artwork",
  "source": "Hilma af Klint, Group IV, No. 3",
  "attachedTo": {
    "seriesId": "series-e7f2a1",
    "sketchId": null
  }
}

Side Effects

  • Imports and stores the image as a reference in the workspace.
  • Attaches the reference to the specified series or sketch if provided.

Error Cases

ErrorCause
Image is requiredThe image parameter was empty or missing.
Image not foundThe file path does not point to an existing file.
Invalid image URLThe URL could not be fetched or is not a valid image.
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

{
  "image": "/Users/me/references/hilma-af-klint-group-iv.jpg",
  "type": "artwork",
  "source": "Hilma af Klint, Group IV, No. 3",
  "seriesId": "series-e7f2a1"
}

Response

{
  "referenceId": "ref-hk4701",
  "type": "artwork",
  "source": "Hilma af Klint, Group IV, No. 3",
  "attachedTo": {
    "seriesId": "series-e7f2a1",
    "sketchId": null
  }
}