genart.dev
MCP ToolsSpatial Arrangement

group_sketches

Create or update a named group of sketches in the workspace for organizational purposes.

Input Schema

ParameterTypeRequiredDescription
groupIdstringyesUnique group identifier
labelstringyesDisplay label for the group
sketchIdsstring[]yesIDs of sketches to include in the group
colorstringnoOptional group color (hex string)

Output Shape

{
  "success": true,
  "group": {
    "id": "warm-tones",
    "label": "Warm Tones",
    "sketchFiles": ["noise-grid.genart", "flow-field.genart"],
    "color": "#FF9800"
  },
  "groupCount": 2
}

Side Effects

  • Updates (or creates) a group entry in the .genart-workspace file
  • If a group with the same ID already exists, it is replaced
  • Does not modify any .genart files

Error Cases

ConditionError
No workspace open"No workspace is currently open"
Unknown sketch ID"Sketch not found: 'bad-id'"
Empty sketchIds array"At least one sketch ID is required"

Golden Path Example

Request:

{
  "groupId": "warm-tones",
  "label": "Warm Tones",
  "sketchIds": ["noise-grid", "flow-field"],
  "color": "#FF9800"
}

Response:

{
  "success": true,
  "group": {
    "id": "warm-tones",
    "label": "Warm Tones",
    "sketchFiles": ["noise-grid.genart", "flow-field.genart"],
    "color": "#FF9800"
  },
  "groupCount": 1
}