gesso-mcp

v0.13.0
gesso-mcp Checked 2 days ago Published 1 month ago

Gesso 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).

ParameterTypeDescription
limitintegerMost faces to list; default 30
querystringWords 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").

ParameterTypeDescription
doc *stringDocument ID
id *stringAsset ID to use in layers, e.g. "hero-photo"
datastringBase64 file contents, when there's no path or URL
descriptionstring
faceintegerFace index in a .ttc font collection
kindstringDetected 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…
replacebooleanReplace an existing asset with this id
sourcestringPath (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" }, "…

ParameterTypeDescription
doc *objectThe full document; see the tool description for the format
replacebooleanOverwrite 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.

ParameterTypeDescription
path *stringThe .psd file: relative to the Gesso folder, or absolute
idstringDocument ID; defaults to the file name
replacebooleanReplace an existing document with this id

canvas_outline Read outline

Compact tree of artboards and layers. The default read.

ParameterTypeDescription
doc *stringDocument ID

canvas_get Read layers

Full JSON for the layers matching the given selectors.

ParameterTypeDescription
doc *stringDocument ID
selectors *array

canvas_selection Selection

Read the current selection, or set it by passing layer IDs.

ParameterTypeDescription
doc *stringDocument ID
setarray

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.

ParameterTypeDescription
doc *stringDocument ID
id *stringNew artboard ID, e.g. "story-9x16"
backgroundstringColour for a blank artboard, e.g. "#FFFFFF"
fromstringArtboard ID to adapt from. Left out, the new artboard starts empty
namestring
presetstringA 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…
scalenumberOverride the scale for sizes and type; default is the smaller axis ratio
sizearray[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…

ParameterTypeDescription
artboard *stringArtboard ID
doc *stringDocument ID
job *string
layer *stringLayer ID: the image layer to work on, or for generate the layer whose frame the new image fills
artboardsarrayexpand: more artboards with the same image layer (same id, as adapted sizes have), all covered by one generated plate
factorintegerUpscale factor, default 2
invertbooleansegment with onto: mask everything except the target
ontostringsegment: a layer to mask with the first target right away: the photo itself (a cut-out), or an adjustment or group above it
promptstringWhat to generate; expand has a sensible default
regionsarrayfill: where to fill, as centre and size fractions of the layer's box
targetsarraysegment: 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…

ParameterTypeDescription
name *stringSkill 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.

ParameterTypeDescription
doc *stringDocument ID
recipe *string
skill *string
baseRevisionintegerDefaults to the current revision
dryRunbooleanReturn the ops without applying them
paramsobjectRecipe parameters: layer and artboard ids, numbers, colours

canvas_history History

List revisions, or revert to an earlier one (recorded as a new revision).

ParameterTypeDescription
doc *stringDocument ID
revertTointeger

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.

ParameterTypeDescription
doc *stringDocument ID
artboardstringArtboard ID; omit to render every artboard (one is needed with region or compare)
compareobject
proofstringSoft proof (View › Proof Colors): "cmyk" for a standard press, or the path of a CMYK ICC profile; shows colours as they would print
regionobjectPart of the artboard, in artboard pixels
scalenumber0.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.

ParameterTypeDescription
doc *stringDocument ID
artboardstringNeeded when the document has several artboards
layersarrayMeasure only these layers (and the groups around them), without the background
mapstringAlso 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…
mattebooleanWith 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…
preflightbooleanAlso 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
regionobjectPart of the artboard, in artboard pixels
revisionintegerMeasure an earlier revision instead of the current one
sampleSizenumberEyedropper sample size: 1 is a point, 5 averages 5×5 pixels
samplesarrayPoints 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).

ParameterTypeDescription
artboard *string
doc *stringDocument ID
layers *arrayLayers to move onto the reference
reference *stringThe layer the others line up with (usually the middle exposure or the sharpest frame)
rotationbooleanAlso correct a small rotation (handheld frames)
scalebooleanAlso 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.

ParameterTypeDescription
artboard *string
doc *stringDocument ID
layers *arrayThe exposures, all covering the same area
mode *string
smoothnessnumberHow 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.

ParameterTypeDescription
artboard *string
doc *stringDocument ID
id *stringId for the new layer and its image asset
layersarrayLayer ids to merge; every visible layer when left out
mergebooleanRemove the merged layers (Merge Layers)
regionobjectPart 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.

ParameterTypeDescription
doc *stringDocument ID
outDir *string
colorstring
formatstring
layerstringThe image layer id each source image replaces
profilestring
rowsarrayData rows, e.g. [{ "name": "spring", "headline": "Spring Sale", "photo": "photos/spring.jpg" }]
scalenumber
sourcesA 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.

ParameterTypeDescription
doc *stringDocument ID
outDir *stringDirectory to write into, relative to the server's base directory
bleednumberPDF: bleed in mm on every side (3 is standard); layers touching the edge extend into it
colorstringImage colour: rgb (default) or cmyk for print (jpeg and tiff), converted through the profile
dpinumberPDF: pixels per inch for the page size; default 300 for print presets (A4, Letter…), else 72
formatstring
imagesbooleanWith format psd, svg or pdf, also write a flat PNG of each artboard
marksbooleanPDF: add crop marks
profilestringICC profile to convert into and embed (Convert to Profile): "srgb", "p3", "cmyk" (a standard press), or a path to an .icc/.icm file
scalenumberIgnored for PSD, which is always full size
slicesbooleanAlso 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.

ParameterTypeDescription
path *string
maxSizeintegerReturn images scaled to fit this many pixels, as PNG