Atelier
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ATELIER_HOME | No | Projects, snapshots, saved brushes. | ~/.atelier |
| ATELIER_HOST | No | Bind address. | 127.0.0.1 |
| ATELIER_PORT | No | UI/HTTP port (tries the next one if busy). | 7878 |
| ATELIER_CHROME | No | Path to a Chrome/Chromium binary. Default: auto-detected. | |
| ATELIER_AUTO_OPEN | No | Set to 0 to stop the UI from opening automatically. | 1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Atelier is a painting studio you control. Everything you do is animated live in a browser UI (open_ui) as if drawn by hand. Coordinates: canvas pixels, origin top-left, +x right, +y down; angles in degrees, clockwise from +x. Workflow: new_canvas (with named layers) → note (narrate) → block in big shapes/washes → refine with strokes → details/effects → snapshot often (grid:true to plan positions, marks to check points, grayscale to check values). Brushes: stroke with a preset (list_brushes) and override any parameter; points [[x,y,pressure],...] get a smooth curve through them, or use an SVG path. Many strokes per call. Use batch for mixed operations and run_script for procedural/repetitive work (hundreds of strokes). Layers have blend modes, opacity, clipping (clip:true), alpha lock and masks; a selection confines all painting/filters. Each tool call is one undo step.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| new_canvasA | Start a NEW drawing (discards the current one from the view; it stays saved as a project). Creates layers bottom→top from |
| canvas_settingsB | Rename the document, change the paper/background color, or resize the canvas (crop/extend with an anchor, or scale all content). |
| get_stateB | Document size, layers (top→bottom with index, id, blend, opacity, flags and content bounding box), active layer, selection, undo depth, UI URL & viewers. |
| open_uiA | Open the live painting UI (watch every stroke being drawn) in the default browser and return its URL. |
| strokeA | Paint one or more hand-drawn brush strokes. Top-level brush params are defaults for every stroke; each stroke can override any of them. Coordinates are canvas px (origin top-left, +y down). Points [x,y,pressure]: pressure 0..1 drives size/opacity per the brush (pressureSize/pressureOpacity). Tips: use several strokes per call; vary pressure for life; taperStart/taperEnd for pointed ends; blend:"erase" to erase; brush "smudge"/"blender" to blend paint; target:"mask" paints a layer mask (paint = reveal, blend "erase" = hide). Use list_brushes to see all presets and parameters. |
| shapeA | Draw vector shapes: rect, ellipse, circle, polygon, polyline, line, star, regular polygon, arc, pie, or any SVG path. Each can have a fill (color / gradient / pattern), a crisp vector stroke, a HAND-DRAWN brush outline ( |
| textC | Typeset text (multi-line, any installed font, gradient fills, outline, shadow, rotation) or lay text along an SVG path. |
| fillB | Paint-bucket flood fill at (x,y) (mode "flood", region found by color similarity on the composite or the layer), or fill the whole selection/layer (mode "all") with a color, gradient or pattern. Respects the selection. |
| import_imageB | Place an image (file path, http(s) URL or data URL) onto a new layer (or an existing one) — e.g. a reference to trace or a texture. |
| selectA | Create/modify the selection. While a selection exists, ALL painting, fills, filters and clears are confined to it (soft edges with feather). action: rect{x,y,w,h,radius} | ellipse{cx,cy,rx,ry|r,rotation} | polygon/lasso{points} | path{d} | wand{x,y,tolerance,contiguous,sample,layer} | color{x,y,tolerance} | layer_alpha{layer} | all | none | invert | feather{amount} | grow{amount} | shrink{amount} | border{amount} | smooth{amount}. mode: replace (default) | add | subtract | intersect. |
| filterA | Apply one or more filters in sequence to a layer (confined to the selection if any; opacity < 1 blends with the original). Filters & params:
|
| add_layerC | Add a new layer (becomes active by default). |
| update_layerA | Change layer properties (name, visibility, opacity, blend mode, lock, alpha lock, clipping, mask enable), make it active, or reorder it (move up/down/top/bottom, above/below another layer, or to an index). |
| delete_layerC | Delete a layer. |
| duplicate_layerB | Duplicate a layer (placed above it, becomes active). |
| merge_layersA | Merge a layer down into the one below, merge all visible layers, or flatten everything (including the paper color) into one layer. |
| clear_layerC | Erase a layer completely (or just inside the selection). |
| transform_layerB | Move / scale / rotate / skew / flip a layer's pixels (or only the selected pixels with selectionOnly, which also moves the selection). Order: translate, rotate, skew, scale around origin. |
| layer_maskA | Manage a layer mask (non-destructive hiding): add (from reveal-all, hide-all or the selection), apply (bake), delete, invert, enable, disable. Paint on it with stroke/fill target:"mask" (paint reveals, blend "erase" hides). |
| list_brushesC | List brush presets (with descriptions), custom brushes, all brush parameters, tips, grain textures, patterns, blend modes and pressure curves. |
| define_brushA | Save a custom brush preset (persisted across sessions) built on a base preset plus parameter overrides. Use its name as |
| snapshotA | Render the canvas (or a region, or chosen layers) to an image you can SEE. Optional coordinate grid with labels, crosshair marks at points (to check placement before drawing), grayscale value check, horizontal flip (fresh-eye check). Also saved to disk. |
| ui_screenshotA | Screenshot the actual browser UI (headless Chrome) to verify what the viewer sees: canvas, layers panel, toolbars. |
| sample_colorsA | Eyedropper: read colors at points from the composite (or one layer). Returns hex, alpha and HSL. |
| analyzeB | Dominant palette (k-means), mean luminance, contrast and a value histogram of the composite or a layer/region — for checking value structure and color harmony. |
| undoA | Undo the last N steps (each tool call is one step; a batch op or a whole script is one step). |
| redoC | Redo N undone steps. |
| historyC | List recent undoable steps. |
| noteA | Show a short narration caption in the live UI ("Blocking in the sky with a wet wash...") so the viewer follows your process. |
| export_imageB | Export the composite (or selected layers / a region) to PNG, JPEG or WebP at any scale. |
| save_projectA | Projects autosave after every change. Use this to force a save, or to save a copy into another folder. |
| load_projectB | Open a saved project (by folder name from list_projects, or an absolute folder path). |
| list_projectsB | List saved projects (newest first). |
| batchA | Run many tool calls in one request, sequentially (each one is its own undo step). Stops at the first error and reports it. Example: {ops:[{tool:"add_layer",args:{name:"Ink"}},{tool:"stroke",args:{brush:"ink",strokes:[...]}}]} |
| run_scriptA | Run JavaScript that draws procedurally (forests of grass, hatching, particles, patterns...). The whole script is ONE undo step and is animated live in the UI. All calls are synchronous. API (same args as the tools): stroke(strokeOrArray, defaults?) shape(shapeOrArray, opts?) text(itemOrArray, opts?) fill(args) filter(filterOrArray, opts?) select(args) addLayer(args) updateLayer(args) deleteLayer(ref) duplicateLayer(args) mergeLayers(args) clearLayer(args) transformLayer(args) layerMask(args) canvasSettings(args) note(text) sample(x, y, layer?) -> {hex, alpha, hsl} layers() -> [{id,name,...}] W, H (canvas size) rand() [0,1) seeded · random(a,b) · randInt(a,b) · pick(array) · gauss() ≈N(0,1/3) clipped to [-1,1] · noise(x,y) Perlin [-1,1] · fbm(x,y,octaves) hsl(h,s,l,a?) s,l in 0..100 -> css · rgb(r,g,b,a?) · mix(colorA, colorB, t) -> hex · lighten(color, amount) · lerp · clamp · print(...) (console.log too) Example: for (let i=0;i<300;i++){ const x=random(0,W); stroke({brush:"grass", color:hsl(100+random(-15,15),45,random(25,45)), points:[[x,H-20],[x+random(-20,20),H-60-random(0,80)]], layer:"Grass"}) } |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 35 tools
Most tools target a distinct object+action (stroke/shape/text/fill, and a clean layer family). The genuinely confusable pairs are batch vs. run_script (both scripted multi-operation execution) and snapshot vs. ui_screenshot (canvas render vs. browser chrome), but their descriptions make the distinction explicit. filter vs. fill and analyze vs. sample_colors are close in flavor yet clearly separated by purpose.
Layer and project tools follow a predictable verb_noun pattern (add_layer, duplicate_layer, merge_layers, list_projects, load_project), but painting primitives use bare single words (stroke, shape, text, fill, select, filter) and a few names invert the pattern (open_ui vs. ui_screenshot, snapshot, batch). The families are internally consistent and readable, so it's mixed conventions rather than chaos.
35 tools is heavy for an agent to scan, but the domain is a full raster/vector painting app with scripting, so almost every tool maps to a real capability. Nothing looks like filler (note, history, undo/redo, ui_screenshot all serve the agent's verification loop), yet the sheer surface imposes a real selection burden.
Coverage is unusually thorough: canvas lifecycle, full layer stack with masks and blend modes, selections, brushes, filters, text/shapes, import/export, undo/redo history, save/load, plus visual verification (snapshot, ui_screenshot, analyze, sample_colors). The main gap is project management — projects can be listed and loaded but not renamed or deleted — a minor dead end agents can work around.