gesso-mcp
v0.13.0Gesso MCP server: AI agents build layered images as data and export PSDs that stay editable in Photoshop.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
canvas_list List documents
List saved documents (id, revision, artboards, last change), newest first. Documents are saved after every change and reopen by id in any tool.
font_list Find fonts
Find fonts on this computer and in the Gesso folder. Without a query, lists the font families. With one, lists matching faces, each with the asset entry to put in doc.assets (then use its family as style.font).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Most faces to list; default 30 |
query | string | Words to match in the family, style or PostScript name, e.g. "inter bold" or "serif" |
asset_import Import asset
Add an image, font or colour lookup table (.cube LUT) to a document's assets from a path, a URL or base64 data. Reads the image size, or the font's family and PostScript name, and returns the entry. Downloads and pasted data are saved in the Gesso folder under assets/. Use the id in image layers ("asset"), filters (displacement maps, Match Color sources) and color-lookup adjustments ("lut"), or the family in text styles ("font").
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
id * | string | Asset ID to use in layers, e.g. "hero-photo" |
data | string | Base64 file contents, when there's no path or URL |
description | string | |
face | integer | Face index in a .ttc font collection |
kind | string | Detected from the file when left out. "mask" saves a grey mask for raster masks: from a cut-out's transparency, or a black-and-white image's brightness. "lut" is a .cube colour lookup table for a colo… |
replace | boolean | Replace an existing asset with this id |
source | string | Path (relative to the Gesso folder, or absolute) or http(s) URL |
canvas_create Create document
Create a layered document. Returns its outline. Change it afterwards with canvas_patch. Documents are saved in the Gesso folder (.gesso/<id>.json) after every change and survive restarts; canvas_list shows them. An existing id is refused unless you pass replace: true. Format (JSON). Layers are listed bottom to top; IDs are short and meaningful ("headline", not "layer1"). { "id": "spring-poster", "assets": { // files the layers use, by ID. Paths are relative to the Gesso folder. Later, asset_import adds more. "photo": { "uri": "photo.jpg", "kind": "image" }, "…
| Parameter | Type | Description |
|---|---|---|
doc * | object | The full document; see the tool description for the format |
replace | boolean | Overwrite a saved document with the same id, discarding its history |
psd_import Open PSD
Open a Photoshop file as a Gesso document you can edit with canvas_patch. Artboards, groups, text (with mixed styling), shapes, smart objects, adjustments, masks and effects stay editable; pixel layers become images saved in the Gesso folder under imported/. Returns the outline and anything that couldn't be kept.
| Parameter | Type | Description |
|---|---|---|
path * | string | The .psd file: relative to the Gesso folder, or absolute |
id | string | Document ID; defaults to the file name |
replace | boolean | Replace an existing document with this id |
canvas_outline Read outline
Compact tree of artboards and layers. The default read.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
canvas_get Read layers
Full JSON for the layers matching the given selectors.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
selectors * | array |
canvas_selection Selection
Read the current selection, or set it by passing layer IDs.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
set | array |
canvas_patch Edit layers
Apply atomic, ID-addressed operations against a baseRevision: set (a field by dot path; lists take an index or + to append, e.g. "filters.+" adds a filter and "filters.0.radius" tunes one), insert, move, remove, duplicate (Copy/Paste and Duplicate Layer: a copy with a new id, optionally offset or placed elsewhere), replace-text (Find and Replace Text across text layers, plain or regex, keeping styled runs), asset and artboard.
artboard_create Add artboard
Add an artboard: blank, or adapted from an existing one ("from"). Adapting re-places every layer for the new size: layers keep to the edge they sit against or stay centred, sizes and type scale evenly, and full-width or full-height layers (backgrounds, bands) stretch. Returns the new artboard's outline, render warnings and a preview; adjust with canvas_patch.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
id * | string | New artboard ID, e.g. "story-9x16" |
background | string | Colour for a blank artboard, e.g. "#FFFFFF" |
from | string | Artboard ID to adapt from. Left out, the new artboard starts empty |
name | string | |
preset | string | A named size: instagram-square (1080×1080), instagram-portrait (1080×1350), instagram-story (1080×1920), instagram-reel (1080×1920), tiktok (1080×1920), facebook-post (1200×630), facebook-cover… |
scale | number | Override the scale for sizes and type; default is the smaller axis ratio |
size | array | [width, height] in pixels, instead of a preset |
gen_prepare Prepare AI job
Prepare an image-model job for a layer: expand (outpaint an image to fill its frame without cropping; with artboards, one shared plate for every size), generate (a new image for a layer's frame from a prompt), fill (Generative Fill or Remove in regions of an image layer, with or without a prompt), segment (Select Subject, Select Sky, or face parts like skin, eyes and lips, returned as masks that follow the photo), remove-background, or upscale. Gesso doesn't run models: it writes the source, padded canvas and mask to the Gesso folder and returns sizes, a prompt, the asset ids to import the res…
| Parameter | Type | Description |
|---|---|---|
artboard * | string | Artboard ID |
doc * | string | Document ID |
job * | string | |
layer * | string | Layer ID: the image layer to work on, or for generate the layer whose frame the new image fills |
artboards | array | expand: more artboards with the same image layer (same id, as adapted sizes have), all covered by one generated plate |
factor | integer | Upscale factor, default 2 |
invert | boolean | segment with onto: mask everything except the target |
onto | string | segment: a layer to mask with the first target right away: the photo itself (a cut-out), or an adjustment or group above it |
prompt | string | What to generate; expand has a sensible default |
regions | array | fill: where to fill, as centre and size fractions of the layer's box |
targets | array | segment: what to select, one mask each: subject, person, sky, background, skin, face, hair, eyes, brows, lips, teeth, clothes, or a short description like "the red car" |
skill_read Read skill
Read a Gesso recipe: the workflow, judgement calls and checks for a kind of task. Skills: adapt-sizes: Adapt one finished design to other sizes (story, square, landscape, banners) so every version looks designed for its size, not squeezed into it. | adjustments: Photoshop's Image › Adjustments as live adjustment layers and filters (curves, levels, exposure, vibrance, colour balance, black & white, photo filter, channel mixer, LUTs, selective colour, shadows/highlights, match and replace colour…), with fields and grading recipes. | beauty-retouch: High-end editorial and beauty retouching wo…
| Parameter | Type | Description |
|---|---|---|
name * | string | Skill name |
skill_apply Apply recipe
Apply a skill's recipe: a proven layer setup (frequency separation, a flambient stack, a duotone, a contact shadow…) filled in with your parameters and applied as one revision. skill_read lists each skill's recipes and their parameters. Then check the result with canvas_render and canvas_inspect, and fine-tune with canvas_patch.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
recipe * | string | |
skill * | string | |
baseRevision | integer | Defaults to the current revision |
dryRun | boolean | Return the ops without applying them |
params | object | Recipe parameters: layer and artboard ids, numbers, colours |
canvas_history History
List revisions, or revert to an earlier one (recorded as a new revision).
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
revertTo | integer |
canvas_render Render preview
Render artboards to preview images. Use a small scale (default 0.5) to save tokens. To check detail, give a region and zoom in (scale 1 = 100%, up to 4 = 400%). To check a change, compare with an earlier revision or with layers hidden: side by side (before left), or a difference image showing where pixels changed, with numbers.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
artboard | string | Artboard ID; omit to render every artboard (one is needed with region or compare) |
compare | object | |
proof | string | Soft proof (View › Proof Colors): "cmyk" for a standard press, or the path of a CMYK ICC profile; shows colours as they would print |
region | object | Part of the artboard, in artboard pixels |
scale | number | 0.5 is half size, 1 is 100%. Above 2 needs a region |
canvas_inspect Inspect
Measure an artboard (or a region, or some layers alone) at full size, like Photoshop's Histogram and Info panels: tonal range, clipping, contrast, colour cast, saturation, sharpness and noise, plus eyedropper samples (hex, RGB, HSB, Lab, and the vectorscope angle against the skin-tone line). A map shows clipped pixels or where the detail is. Use it to check retouching and grading with numbers, before and after a change. With matte and layers, it checks a cut-out's edge: soft-edge width, halo of the old background, specks and holes.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
artboard | string | Needed when the document has several artboards |
layers | array | Measure only these layers (and the groups around them), without the background |
map | string | Also return an image: clipping (red = clipped to white in a channel, blue = clipped to black), sharpness (bright = detailed, dark = soft), or matte (with layers: the cut-out's mask, and the cut-out ov… |
matte | boolean | With layers: check them as a cut-out. Reports soft-edge width, halo (how far edge colours stray from the subject's own: under 10 clean, over 20 a visible fringe) and its tone, specks of background lef… |
preflight | boolean | Also list layout problems: text and logos in a preset's safe-zone margins or off the artboard, type too small to read, images enlarged past their pixels, hidden or empty layers |
region | object | Part of the artboard, in artboard pixels |
revision | integer | Measure an earlier revision instead of the current one |
sampleSize | number | Eyedropper sample size: 1 is a point, 5 averages 5×5 pixels |
samples | array | Points to sample, in artboard pixels |
canvas_align Auto-align
Edit › Auto-Align Layers: lines up exposures of the same scene (a focus stack, an exposure bracket, burst frames) with a reference layer, by phase correlation. Shifts each layer's frame, and with scale or rotation also corrects focus breathing (±4%) or a slight handheld turn (±2°). Returns what it found per layer, with a confidence (higher is surer; below about 0.05 the match is doubtful).
| Parameter | Type | Description |
|---|---|---|
artboard * | string | |
doc * | string | Document ID |
layers * | array | Layers to move onto the reference |
reference * | string | The layer the others line up with (usually the middle exposure or the sharpest frame) |
rotation | boolean | Also correct a small rotation (handheld frames) |
scale | boolean | Also correct a scale change (focus breathing between focus-stack frames) |
canvas_stack Auto-blend
Edit › Auto-Blend Layers: merges aligned exposures into one image with a raster mask per layer. mode focus: a focus stack, each part from the frame where it's sharpest. mode exposure: an exposure bracket fused (Mertens exposure fusion), favouring well-exposed, contrasty, saturated pixels, as a natural-looking HDR. The bottom layer shows everywhere; layers above are masked. Align them first with canvas_align.
| Parameter | Type | Description |
|---|---|---|
artboard * | string | |
doc * | string | Document ID |
layers * | array | The exposures, all covering the same area |
mode * | string | |
smoothness | number | How soft the transitions between frames are, in px (default 1% of the shorter side) |
canvas_stamp Merge layers
Merge layers into one pixel layer: Stamp Visible (everything visible, when no layers are given), Copy Merged and Paste, Merge Layers (merge: true removes the originals) or Rasterize (one layer). Renders them, saves the pixels in the Gesso folder and inserts an image layer above them. Use it for techniques that work on a merged copy: frequency separation, high-pass sharpening, dodge & burn, content-aware fill across layers.
| Parameter | Type | Description |
|---|---|---|
artboard * | string | |
doc * | string | Document ID |
id * | string | Id for the new layer and its image asset |
layers | array | Layer ids to merge; every visible layer when left out |
merge | boolean | Remove the merged layers (Merge Layers) |
region | object | Part of the artboard to keep; all of it by default |
canvas_batch Batch export
Run a document as a template over many images or rows of data (Photoshop's File › Automate › Batch and Variables / data sets). With sources (a folder or a list of images) and layer, each image takes that image layer's place (keeping its frame, fit, filters and effects). With rows, each row is a set of values by layer id: text layers take the text, image layers a path; "name" names the file. Every artboard is exported per image or row.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
outDir * | string | |
color | string | |
format | string | |
layer | string | The image layer id each source image replaces |
profile | string | |
rows | array | Data rows, e.g. [{ "name": "spring", "headline": "Spring Sale", "photo": "photos/spring.jpg" }] |
scale | number | |
sources | A folder of images, or a list of image paths, relative to the Gesso folder |
canvas_export Export
Export every artboard as an image file; the whole document as one layered PSD with artboards; each artboard as an editable SVG (vector shapes and real text; effects SVG can't express are embedded as images); or a PDF with a page per artboard (vector and selectable text, fonts embedded; for print, set bleed and marks). Writes a manifest.json too.
| Parameter | Type | Description |
|---|---|---|
doc * | string | Document ID |
outDir * | string | Directory to write into, relative to the server's base directory |
bleed | number | PDF: bleed in mm on every side (3 is standard); layers touching the edge extend into it |
color | string | Image colour: rgb (default) or cmyk for print (jpeg and tiff), converted through the profile |
dpi | number | PDF: pixels per inch for the page size; default 300 for print presets (A4, Letter…), else 72 |
format | string | |
images | boolean | With format psd, svg or pdf, also write a flat PNG of each artboard |
marks | boolean | PDF: add crop marks |
profile | string | ICC profile to convert into and embed (Convert to Profile): "srgb", "p3", "cmyk" (a standard press), or a path to an .icc/.icm file |
scale | number | Ignored for PSD, which is always full size |
slices | boolean | Also export each layer named like a file ("logo.png", "200% hero.jpg", "hero.jpg80", "512x512 icon.png"), alone and cropped, as Photoshop's Generate › Image Assets does |
gesso_file Download file
Returns a file this Gesso server exported, for the result card's download buttons.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
maxSize | integer | Return images scaled to fit this many pixels, as PNG |