edit canvas
Authorizations
Headers
Body
Operations, discriminated on type, applied in order as one transaction; a bad one is named by its position and nothing lands. Coordinates are slide pixels; a box is {x, y, w, h, rotation?} with x and y its top-left; layer order in a slide is draw order, bottom first. addLayer {layer, slideId?, index?, parentId?} where layer is {type: "image", ref}, {type: "text", text, preset?, size?, font?, weight?, color?, align?}, {type: "shape", shape, fill?, stroke?, radius?}, {type: "icon", icon} (a Lucide name) or {type: "icon", svg} (a plain SVG drawing the caller wrote: gradients, patterns, filters), {type: "chart", chart, rows, colors?} or {type: "adjustment", grade}, plus any field the layer holds (name, opacity, blend, mask, effects, grade, box); slideId defaults to the first slide. addLayer {copyOf, index?}: in-place copy. removeLayer {layerId}; moveLayer {layerId, index, parentId?}; patchLayer {layerId, patch} (its own fields, and on text also text, size, weight, font; null clears; text in one style, runs as styled spans); replaceImage {layerId, ref}; group {layerIds, name?}; ungroup {layerId}. setCanvas {patch: {width?, height?, background?, dpi?, destination?, platforms?}} (platforms: target platform names, shown under its feed post); addSlide {slide: {name?, background?, layers?}} or {copyOf, index?}; setSlide {slideId, patch}; removeSlide {slideId}; moveSlide {slideId, index}. Limits: 200 layers a slide, 50 slides, 8192px a side. The full reference (every layer kind's fields, presets, shapes, charts, masks including subject and background, grades, backgrounds) is the skill skill-canvas-operations, read with manage_skills get.
1 - 200 elements
