Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ATELIER_HOMENoProjects, snapshots, saved brushes.~/.atelier
ATELIER_HOSTNoBind address.127.0.0.1
ATELIER_PORTNoUI/HTTP port (tries the next one if busy).7878
ATELIER_CHROMENoPath to a Chrome/Chromium binary. Default: auto-detected.
ATELIER_AUTO_OPENNoSet 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
new_canvasA

Start a NEW drawing (discards the current one from the view; it stays saved as a project). Creates layers bottom→top from layers. Opens the live UI in the browser if no viewer is connected.

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 (brush), rotation, opacity, blend and drop shadow.

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:

  • blur: radius (px, gaussian sigma, default 4)

  • motion_blur: angle (deg), distance (px, default 20)

  • zoom_blur: cx, cy (doc px, default region center), amount (0..1, default 0.15)

  • sharpen: amount (default 0.8), radius (default 1.5)

  • noise: amount (0..1, default 0.1), mono (bool, default true), seed

  • hue_saturation: hue (deg shift), saturation (-100..100), lightness (-100..100)

  • brightness_contrast: brightness (-100..100), contrast (-100..100)

  • exposure: ev (stops, e.g. 0.5 or -0.7), gamma (default 1)

  • levels: inBlack (0), inWhite (255), gamma (1), outBlack (0), outWhite (255)

  • curves: points [[in,out],...] 0-255 (monotone spline), channel: rgb|r|g|b

  • color_balance: shadows/midtones/highlights: [r,g,b] each -100..100 (cyan-red, magenta-green, yellow-blue)

  • colorize: hue (deg), saturation (0..100, default 50), lightness (-100..100)

  • color_overlay: color, opacity (0..1), blend (normal, multiply, screen, overlay, color, soft-light...)

  • vibrance: amount (-100..100)

  • invert: -

  • grayscale: -

  • sepia: amount (0..1, default 1)

  • posterize: levels (2..32, default 5)

  • threshold: level (0..255, default 128), colors? [dark, light]

  • gradient_map: stops: ["#000", "#f80", "#fff"] mapped from shadows to highlights

  • pixelate: size (px, default 8)

  • glow: radius (default 12), intensity (default 1), threshold (0..255 luminance, default 0 = everything glows), color (optional tint), mode: halo (default: glow around, subject unchanged) | add (additive bloom over the subject; alias type "bloom")

  • drop_shadow: dx, dy (default 6), blur (default 8), color (default #000), opacity (default 0.5)

  • outline: width (px, default 3), color (default #000), opacity (default 1)

  • warp: mode: wave|ripple|twirl|pinch|bulge|noise; amplitude (px), wavelength (px), angle, cx, cy, radius, strength, seed

  • kuwahara: radius (default 4) — painterly smoothing (alias oil_paint)

  • vignette: strength (0..1, default 0.5), radius (0..1, default 0.75 of half-diagonal), color (default #000)

  • chromatic_aberration: amount (px, default 4), angle (deg)

  • emboss: angle (deg, default 135), strength (default 1), mix (0..1 blend with original, default 1)

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 brush afterwards.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 35 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count3/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues