genart.dev
MCP ToolsComponents

remove_component

Remove component dependency from sketch.

Input Schema

ParameterTypeRequiredDescription
sketchIdstringYesID of the sketch to remove the component from.
componentstringYesName of the component to remove.

Output Shape

{
  "sketchId": "my-sketch-01",
  "component": "perlin-noise",
  "removed": true
}

Side Effects

  • Removes the component from the sketch's dependency list.
  • The component code will no longer be available to the sketch algorithm at render time.

Error Cases

ErrorCause
Sketch not foundThe provided sketchId does not match any saved sketch.
Component not foundThe provided component name is not a dependency of this sketch.

Golden Path Example

Request

{
  "sketchId": "my-sketch-01",
  "component": "perlin-noise"
}

Response

{
  "sketchId": "my-sketch-01",
  "component": "perlin-noise",
  "removed": true
}