Photoshop-MCP-IMT + SKILLS — Photoshop for AI agents
v1.1.4Photoshop for AI agents: every Adobe UI language, checks by sight, skills, generative tools first
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
photoshop_ping
Verify that the Photoshop scripting engine can run a script. Use when: once at session start, and after extendscript_timeout until this call succeeds. Do NOT use when: on every tool call — after a successful ping, use photoshop_get_state. Do not call get_state or get_layers while this ping is still failing. Returns: "Successfully connected to Photoshop" only after a short script runs inside Photoshop. While a previous script is still running, returns extendscript_timeout — retry photoshop_ping. If that timeout happens while the OS drive has under 10 GB free, returns scratch_disk_full ins…
photoshop_get_version
Return the detected Photoshop version string. Use when: user asks about compatibility or before version-gated features. Do NOT use when: you need feature flags — prefer photoshop_get_capabilities. Returns: version string. Preconditions: none. Side effects: none.
photoshop_create_document
Create a new empty Photoshop document with specified dimensions and color mode. Use when: starting a design from scratch or no document is open. Do NOT use when: opening an existing file — use photoshop_open_image. Returns: created document id and name. Preconditions: none. Side effects: creates a new document and makes it active.
| Parameter | Type | Description |
|---|---|---|
height * | number | Document height in pixels |
width * | number | Document width in pixels |
colorMode | string | Color mode (RGB, CMYK, Grayscale) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
resolution | number | Document resolution in DPI (default: 72) |
photoshop_get_document_info
Get information about the active Photoshop document
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_list_documents
List every open Photoshop document with id, dimensions, saved flag, artboard_count, and which tab is active. Use when: multiple documents are open and you need document_id before switching tabs, previewing, or closing a specific file. Do NOT use when: you only need the active document — use photoshop_get_document_info or photoshop_get_state. Returns: JSON { ok, summary, details: { count, documents[] (id, name, width, height, saved, artboard_count, is_active), active_document_id, context } }. Preconditions: none (safe when zero documents open). Side effects: briefly activates each tab to re…
photoshop_set_active_document
Switch the active document tab by document_id (preferred), zero-based index, or name. Use when: working across multiple open files and mutations must target a specific document. Do NOT use when: only one document is open — it is already active. Do NOT use document_name when duplicate names exist — use document_id from photoshop_list_documents. Returns: JSON { ok, summary, details: { activated: { id, name }, context } }. Preconditions: target document must be open. Provide exactly one of document_id, index, or document_name. Side effects: changes active tab.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Unique internal document id from photoshop_list_documents (preferred) |
document_name | string | Document name/title (ambiguous if multiple tabs share the same name) |
index | number | Zero-based tab order index (leftmost tab is 0) |
photoshop_save_document
Save the active document to disk in PSD, JPEG, or PNG format. Use when: user requests export/save with a specific path and format. Do NOT use when: web-optimized resize+sharpen pipeline is needed — use photoshop_recipe_prepare_for_web. Returns: confirmation with saved path and format. Preconditions: active document; path required. Side effects: writes file to disk.
| Parameter | Type | Description |
|---|---|---|
path * | string | Full path where to save the document |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | File format (PSD, JPEG, PNG) |
quality | number | Quality for JPEG (1-12, default: 8) |
photoshop_close_document
Close a Photoshop document tab. Defaults to the active document; pass document_id to close a specific open file. Use when: the user is done with a file, or when cleaning up extra open tabs after photoshop_list_documents. Do NOT use when: you only need to switch tabs — use photoshop_set_active_document. Returns: confirmation that the document closed. Preconditions: target document is open. Side effects: closes that tab; save=true writes unsaved changes first.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
save | boolean | Whether to save changes before closing |
photoshop_create_layer
Create a new empty layer above the active layer. Use when: user needs a blank layer for painting, fills, or stacking content. Do NOT use when: adding text — use photoshop_create_text_layer. Returns: created layer name and context. Preconditions: active document. Side effects: adds layer to history.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
name | string | Name for the new layer (optional) |
photoshop_delete_layer
Delete the active layer
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_create_text_layer
Create a text layer with content, position, font, and optional typography (tracking, leading, paragraph box, alignment, color). Users often say: add title, letter spacing, line height, text box, 字间距, 行高, 排版. Use when: adding labels, titles, or typography to the design. Do NOT use when: editing existing text — use photoshop_update_text_content / photoshop_set_text_style. Do NOT use execute_script for tracking/leading/box — pass those fields here. Returns: JSON { ok, summary, details: { layerName, text, style, context } }. Use photoshop_list_fonts to discover font names; pho…
| Parameter | Type | Description |
|---|---|---|
text * | string | Text content |
alignment | string | Paragraph/point justification |
auto_leading | boolean | Use Photoshop auto leading (ignores leading when true) |
blue | number | Text color blue 0–255 |
box_height | number | Paragraph text box height in pixels (implies kind=paragraph) |
box_width | number | Paragraph text box width in pixels (implies kind=paragraph) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
fontName | string | Optional font PostScript name (preferred, the same in every Photoshop UI language) or display name (resolved via app.fonts; see photoshop_list_fonts) |
fontSize | number | Font size in points (default: 24) |
green | number | Text color green 0–255 |
kind | string | point = single-line; paragraph = wrapped text box (default point unless box_width/height set) |
leading | number | Line height in points. Sets auto_leading false. |
red | number | Text color red 0–255 |
tracking | number | Character spacing in 1/1000 em (−1000 to 10000). Photoshop tracking. |
x | number | X position in pixels (default: 100) |
y | number | Y position in pixels (default: 100) |
photoshop_fill_layer
Fill the active layer with a color
| Parameter | Type | Description |
|---|---|---|
blue * | number | Blue component (0-255) |
green * | number | Green component (0-255) |
red * | number | Red component (0-255) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_get_layers
List all layers in the active document with kind, visibility, and opacity. Use when: choosing a layer to edit, debugging structure, or after organize_layers. Do NOT use when: only session summary is needed — use photoshop_get_state (lighter). Returns: layerCount, layers array (LayerSets include is_artboard), context. Preconditions: active document. Side effects: none.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_select_layer_by_name
Select the active layer by exact name, including layers inside groups. Use when: a transform or property tool must target a named layer (photoshop_scale_layer, etc.). Do NOT use when: the layer is already active — check photoshop_get_state first. Returns: selected, layerName, kind, bounds (best-effort), context. First depth-first name match wins when duplicate names exist in different groups. Preconditions: active document. Side effects: changes active layer.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact layer name (case-sensitive) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_resize_image
Resize the active image to specified dimensions
| Parameter | Type | Description |
|---|---|---|
height * | number | New height in pixels |
width * | number | New width in pixels |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_crop_document
Crop the document to specified bounds
| Parameter | Type | Description |
|---|---|---|
bottom * | number | Bottom edge position in pixels |
left * | number | Left edge position in pixels |
right * | number | Right edge position in pixels |
top * | number | Top edge position in pixels |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_place_image
Place an external image file as a new layer in the active document. x/y are absolute canvas coordinates for the placed layer's top-left bound in pixels (0,0 = document top-left). They are NOT an offset from Photoshop's default centered Place. Use when: compositing assets into an open document at a known position. Do NOT use when: opening a file as a new document — use photoshop_open_image. Returns: placed layer name, bounds, and position.semantics = absolute_top_left. Preconditions: active document; file must exist. Side effects: adds a new layer.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Full path to the image file (JPEG, PNG, PSD, etc.) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
x | number | Absolute canvas X of the placed layer top-left, in pixels (default: 0) |
y | number | Absolute canvas Y of the placed layer top-left, in pixels (default: 0) |
photoshop_open_image
Open an image file as a new Photoshop document. Use when: user provides a file path to edit or no document is open yet. Do NOT use when: adding to an existing composite — use photoshop_place_image. Returns: document id, name, width, height. Preconditions: file must exist on disk. Side effects: opens document as active.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Full path to the image file |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_convert_to_smart_object
Convert the active layer (or a named layer) to an embedded Smart Object. Users often say: convert to smart object, make smart layer, embed layer. Use when: non-destructive transforms/filters are needed on a raster or shape layer. Do NOT use when: the layer is already a Smart Object — returns success with already_smart_object. Do NOT use on background layers — unlock or duplicate first. Returns: JSON { ok, summary, details: { layer_name, kind, already_smart_object? } }. Preconditions: active document; target layer must be selected or named. Side effects: one history step.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
layer_name | string | Optional exact layer name (recursive search). Default: active layer. |
photoshop_replace_smart_object_contents
Replace the embedded contents of a Smart Object layer from an image file. Preserves transforms, warps, and Smart Filters on the layer. Users often say: replace smart object, swap mockup screen, relink embedded file. Use when: updating a mockup or template Smart Object with a new asset file. Do NOT use when: the target is not a Smart Object — convert first or use photoshop_place_image. Do NOT use for linked Smart Objects that need Relink to File — this replaces embedded contents. Returns: JSON { ok, summary, details: { layer_name, file_path } }. Preconditions: Smart Object layer active o…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute path to the replacement image file (JPEG, PNG, PSD, etc.) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
layer_name | string | Optional exact Smart Object layer name. Default: active layer. |
photoshop_edit_smart_object_contents
Open a Smart Object for editing (double-click / Edit Contents). The embedded .psb becomes the active document until you save and close it. Users often say: edit smart object, open embedded file, double-click smart layer. Use when: modifying pixels inside an embedded Smart Object non-destructively. Do NOT use when: replacing the whole asset — use photoshop_replace_smart_object_contents. Returns: JSON { ok, summary, details: { parent_document, embedded_document, layer_name } }. Preconditions: Smart Object layer active or named. Side effects: active document switches to the embedded .psb —…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
layer_name | string | Optional exact Smart Object layer name. Default: active layer. |
photoshop_create_smart_object_via_copy
Create an independent Smart Object via Copy — unlinked duplicate with its own embedded contents. Users often say: new smart object via copy, independent smart copy, duplicate smart object separately. Use when: you need a second Smart Object that does not share embedded data with the original. Do NOT use when: you want linked instances — use photoshop_duplicate_layer (Layer via Copy). Returns: JSON { ok, summary, details: { source_layer_name, new_layer_name, kind } }. Preconditions: Smart Object layer active or named. Side effects: adds a new Smart Object layer.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
layer_name | string | Optional source Smart Object layer name. Default: active layer. |
photoshop_fit_layer_to_document
Scale the active layer to fit the document canvas while maintaining aspect ratio
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
fillDocument | boolean | If true, fills entire canvas (may crop). If false, fits within canvas (may have margins). Default: false |
photoshop_scale_layer
Scale the active layer by a percentage
| Parameter | Type | Description |
|---|---|---|
scalePercent * | number | Scale percentage (e.g., 50 for 50%, 200 for 200%) |
centerAnchor | boolean | Scale from center (true) or top-left (false). Default: true |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_move_layer
Move the active layer by specified offset
| Parameter | Type | Description |
|---|---|---|
deltaX * | number | Horizontal offset in pixels (can be negative) |
deltaY * | number | Vertical offset in pixels (can be negative) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_rotate_layer
Rotate the active layer
| Parameter | Type | Description |
|---|---|---|
degrees * | number | Rotation angle in degrees (positive = clockwise, negative = counter-clockwise) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_distort_layer
Corner-pin / perspective distort of a layer: map its bounding box to four target corners (absolute document pixels, clockwise from top-left). Headless replacement for Free Transform → Distort / Perspective Warp (which are modal and cannot be scripted). Implemented as a custom warp mesh fitted to the homography — exact on pixel layers; a Smart Object must be rasterized first (rasterize:true, destructive — duplicate it before if the original matters). Read the current bounds with get_layers / get_state, then compute the target corners. Save a copy of the document before (save_document).
| Parameter | Type | Description |
|---|---|---|
corners * | Target corners in absolute document px: {"tl":[x,y],"tr":[x,y],"br":[x,y],"bl":[x,y]} or a flat array [x1,y1,x2,y2,x3,y3,x4,y4] (tl,tr,br,bl) | |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
interpolation | string | |
layer | string | layer name (searched recursively); default — active layer |
mode | string | perspective — true projective mapping (parallel lines converge); bilinear — straight edges, no convergence |
rasterize | boolean | rasterize a Smart Object layer before warping (destructive; required for Smart Objects) |
photoshop_rasterize_layer
Rasterize the active layer (convert text/smart object to normal layer)
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_set_layer_opacity
Set the opacity of the active layer
| Parameter | Type | Description |
|---|---|---|
opacity * | number | Opacity value (0-100) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_set_layer_blend_mode
Set the blend mode of the active layer. `COLOR` is the Photoshop UI name (Colorize); it is mapped to ExtendScript `BlendMode.COLORBLEND`.
| Parameter | Type | Description |
|---|---|---|
blendMode * | string | Blend mode (Photoshop UI name). COLOR maps to BlendMode.COLORBLEND. DARKERCOLOR / LIGHTERCOLOR use Action Manager if the DOM enum is missing. |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_set_layer_visibility
Show or hide the active layer
| Parameter | Type | Description |
|---|---|---|
visible * | boolean | Whether the layer should be visible |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_set_layer_locked
Lock or unlock the active layer
| Parameter | Type | Description |
|---|---|---|
locked * | boolean | Whether the layer should be locked |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_rename_layer
Rename the active layer
| Parameter | Type | Description |
|---|---|---|
name * | string | New name for the layer |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_duplicate_layer
Duplicate the active layer. The duplicate becomes the active layer; returns its name and, when available, its layer id.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
newName | string | Name for the duplicated layer (optional) |
photoshop_merge_visible_layers
Merge all visible layers into one
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_flatten_image
Flatten all layers into a single background layer
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_apply_gaussian_blur
Apply Gaussian Blur filter to the active layer
| Parameter | Type | Description |
|---|---|---|
radius * | number | Blur radius in pixels (0.1-250) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_apply_sharpen
Apply Unsharp Mask (sharpen) filter to the active layer
| Parameter | Type | Description |
|---|---|---|
amount * | number | Sharpening amount in percent (1-500) |
radius * | number | Radius in pixels (0.1-250) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
threshold | number | Threshold levels (0-255) |
photoshop_apply_noise
Apply Add Noise filter to the active layer
| Parameter | Type | Description |
|---|---|---|
amount * | number | Noise amount in percent (0.1-400) |
distribution | string | Noise distribution type |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
monochromatic | boolean | Apply monochromatic noise |
photoshop_apply_motion_blur
Apply Motion Blur filter to the active layer
| Parameter | Type | Description |
|---|---|---|
angle * | number | Blur angle in degrees (-360 to 360) |
radius * | number | Blur distance in pixels (1-999) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_apply_high_pass
Apply the High Pass filter to the active raster layer — edge/detail extraction for sharpening workflows or frequency separation prep. Users often say: high pass filter, sharpen edges, extract details, frequency separation high layer. Use when: sharpening via overlay blend, detail extraction, or prepping a high-frequency layer. Do NOT use on text, Smart Objects, or the Background layer — rasterize or convert first (photoshop_rasterize_layer). Returns: JSON { ok, summary, details: { filter, radius, context } }. Preconditions: active document; normal (raster) layer selected. Side effects:…
| Parameter | Type | Description |
|---|---|---|
radius * | number | Edge retention radius in pixels (0.1-250) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_apply_smart_blur
Apply the Smart Blur filter to the active raster layer — edge-preserving blur for smoothing skin or simplifying backgrounds. Users often say: smart blur, edge-preserving blur, smooth skin blur, blur but keep edges. Use when: subtle smoothing that respects edges (portraits, product cleanup). Do NOT use on text, Smart Objects, or the Background layer — rasterize first (photoshop_rasterize_layer). Do NOT use when: uniform blur is enough — use photoshop_apply_gaussian_blur. Returns: JSON { ok, summary, details: { filter, radius, threshold, mode, quality, context } }. Preconditions: active…
| Parameter | Type | Description |
|---|---|---|
radius * | number | Blur radius (0.1-100) |
threshold * | number | Blur threshold — higher values restrict blur to stronger edges (0.1-100) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
mode | string | Smart blur mode (default: NORMAL) |
quality | string | Blur quality / smoothness (default: MEDIUM) |
photoshop_adjust_brightness_contrast
Adjust brightness and contrast of the active layer. Users often say: fix exposure, add contrast, brighten, darken.
| Parameter | Type | Description |
|---|---|---|
brightness * | number | Brightness adjustment (-100 to 100) |
contrast * | number | Contrast adjustment (-100 to 100) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_adjust_hue_saturation
Adjust hue, saturation, and lightness of the active layer
| Parameter | Type | Description |
|---|---|---|
hue * | number | Hue shift (-180 to 180) |
lightness * | number | Lightness adjustment (-100 to 100) |
saturation * | number | Saturation adjustment (-100 to 100) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_auto_levels
Apply auto levels adjustment to the active layer. Users often say: fix flat image, auto tone, make it pop (mild).
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_auto_contrast
Apply auto contrast adjustment to the active layer
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_adjust_curves
Create a Curves adjustment layer on the active document. Users often say: make it pop, S-curve, fix flat image, auto tone, improve contrast. Use when: global tonal correction via a non-destructive Curves adjustment layer. Do NOT use when: stylistic cinematic grade — use photoshop_recipe_apply_color_grade. Returns: JSON { ok, summary, details: { layer_name, preset } }. Preconditions: active document. Side effects: adds Curves adjustment layer.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
preset | string | auto_tone (S-curve) or neutral (identity curve) |
photoshop_desaturate
Desaturate the active layer (convert to grayscale)
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_invert
Invert colors of the active layer
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_list_fonts
List installed fonts available to Photoshop. Use when: choosing a font for photoshop_create_text_layer or photoshop_set_text_font. TextItem.font requires the PostScript name — use postScriptName from results. It is the same in every Photoshop UI language, while name/family can be localized (e.g. CJK fonts in a Japanese UI); set/create tools also accept a display name as a fallback. Returns: fonts array ({ name, postScriptName, family, style }), total count, truncated flag. First call may be slow (app.fonts.length can exceed 1000). Side effects: none.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
limit | number | Maximum fonts to return (default: 200) |
query | string | Optional substring filter (matches name, postScriptName, or family) |
photoshop_set_text_font
Set font family and size for active text layer. Prefer the PostScript name (e.g. "ArialMT"): it is the same in every Photoshop UI language. A display name (e.g. "Arial") also works but can be localized; an exact PostScript match wins. Use photoshop_list_fonts to discover available fonts.
| Parameter | Type | Description |
|---|---|---|
fontName * | string | Font PostScript name (preferred, language-independent) or display name (see photoshop_list_fonts) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
fontSize | number | Font size in points (optional) |
photoshop_set_text_color
Set color for active text layer
| Parameter | Type | Description |
|---|---|---|
blue * | number | Blue component (0-255) |
green * | number | Green component (0-255) |
red * | number | Red component (0-255) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_set_text_alignment
Set text alignment for active text layer
| Parameter | Type | Description |
|---|---|---|
alignment * | string | Text alignment |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_update_text_content
Update the text content of active text layer
| Parameter | Type | Description |
|---|---|---|
text * | string | New text content |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_set_text_style
Set layer-wide typography on the active text layer: tracking, leading, point vs paragraph box, alignment, font, size, color. Users often say: letter spacing, tracking, line height, leading, text box width, paragraph text, 字间距, 行高, 文本框. Use when: tightening/loosening type, setting line height, converting to a wrapped paragraph box, or batching several text attributes in one undo-friendly call. Do NOT use when: creating a new layer — pass the same fields on photoshop_create_text_layer. Do NOT use when: mixed fonts/colors inside one layer — use photoshop_set_text_ranges. Do…
| Parameter | Type | Description |
|---|---|---|
alignment | string | Justification (same enum as photoshop_set_text_alignment) |
auto_leading | boolean | Use Photoshop auto leading |
blue | number | Blue 0–255 |
box_height | number | Paragraph box height in pixels (implies kind=paragraph) |
box_width | number | Paragraph box width in pixels (implies kind=paragraph) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
fontName | string | Font PostScript name (preferred) or display name |
fontSize | number | Size in points |
green | number | Green 0–255 |
kind | string | point or paragraph (wrapped) text |
leading | number | Line height in points. Sets auto_leading false. |
red | number | Red 0–255 |
tracking | number | Character spacing in 1/1000 em (−1000 to 10000) |
photoshop_set_text_ranges
Apply mixed fonts, sizes, and colors inside a single text layer (Action Manager textStyleRange). Users often say: mixed type, two fonts in one line, multicolor text, 混排, 同一文字层. Use when: one layer must contain more than one font or color. from is inclusive, to is exclusive (JavaScript slice / ExtendScript string indexes). Do NOT use when: the whole layer shares one style — use photoshop_set_text_style. Do NOT split into extra layers for mixed type unless this tool errors. Returns: JSON { ok, summary, details: { style, ranges } }. Preconditions: active text layer. Unspecified…
| Parameter | Type | Description |
|---|---|---|
ranges * | array | Non-overlapping character spans (from inclusive, to exclusive) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_get_selection_bounds
Read the active pixel selection bounds in document pixels (read-only). Use when: verifying selection exists and its size/position before mask, fill, or recipe steps. Do NOT use when: creating or modifying a selection — use photoshop_select_rectangle or photoshop_select_subject. Returns: JSON { ok, summary, details: { has_selection, bounds?, context } }. Preconditions: active document. Side effects: none.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_select_ellipse
Create an elliptical pixel selection from a bounding box (anti-aliased). Use when: circular or oval masks, vignettes, or radial edits inside a region. Do NOT use when: a rectangular region is enough — use photoshop_select_rectangle. Returns: JSON { ok, summary, details: { shape, bounds?, context } }. Preconditions: active document; right > left and bottom > top. Side effects: replaces current selection.
| Parameter | Type | Description |
|---|---|---|
bottom * | number | Bottom edge of bounding box in pixels |
left * | number | Left edge of bounding box in pixels |
right * | number | Right edge of bounding box in pixels |
top * | number | Top edge of bounding box in pixels |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_expand_selection
Expand the active pixel selection outward by a pixel amount. Use when: growing a tight subject selection or adding padding before feather/fill. Do NOT use when: no selection exists — create one first. Returns: JSON { ok, summary, details: { pixels, bounds?, context } }. Preconditions: active document and active pixel selection. Side effects: modifies selection.
| Parameter | Type | Description |
|---|---|---|
pixels * | number | Pixels to expand by (minimum 1) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_contract_selection
Contract (shrink) the active pixel selection inward by a pixel amount. Use when: tightening a loose selection or trimming halo after expand. Do NOT use when: no selection exists — create one first. Returns: JSON { ok, summary, details: { pixels, bounds?, context } }. Preconditions: active document and active pixel selection. Side effects: modifies selection.
| Parameter | Type | Description |
|---|---|---|
pixels * | number | Pixels to contract by (minimum 1) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_feather_selection
Feather (soften) the edges of the active pixel selection. Use when: soft transitions before fill, mask, or delete operations. Do NOT use when: a hard edge is required or no selection exists. Returns: JSON { ok, summary, details: { pixels, bounds?, context } }. Preconditions: active document and active pixel selection. Side effects: modifies selection edges.
| Parameter | Type | Description |
|---|---|---|
pixels * | number | Feather radius in pixels (minimum 1) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_save_selection
Save the active pixel selection to a new alpha channel. Use when: preserving a selection for later reload or batch workflows. Do NOT use when: no selection exists — create one first. Returns: JSON { ok, summary, details: { channel_name, context } }. Preconditions: active document and active pixel selection. Side effects: adds alpha channel.
| Parameter | Type | Description |
|---|---|---|
channel_name | string | Optional name for the new alpha channel (auto-generated if omitted) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_select_rectangle
Create a rectangular pixel selection from corner coordinates. Use when: masking, cropping a region, or preparing for layer mask. Do NOT use when: subject isolation is needed — use photoshop_recipe_remove_background. Returns: selection bounds [left, top, right, bottom]. Preconditions: active document. Side effects: replaces, adds, subtracts, or intersects the current selection. mode intersect/add/subtract uses Action Manager and does not depend on the SelectionType enum.
| Parameter | Type | Description |
|---|---|---|
bottom * | number | Bottom edge in pixels |
left * | number | Left edge in pixels |
right * | number | Right edge in pixels |
top * | number | Top edge in pixels |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
mode | string | How this rectangle combines with the current selection. Default replace. Use intersect when SelectionType.INTERSECT is unavailable. |
photoshop_select_all
Select the entire document
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_deselect
Deselect all selections
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_invert_selection
Invert the current selection
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_create_layer_mask
Create a layer mask on the active layer from the current selection (reveal selection). Users often say: mask this, hide the background, non-destructive cutout (after selection). Use when: non-destructive hide/show after a selection exists. Do NOT use when: no selection exists — create selection first or use remove_background recipe. Returns: maskCreated confirmation. Preconditions: active document and active selection. Side effects: adds mask to active layer.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_delete_layer_mask
Delete the layer mask from active layer
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_apply_layer_mask
Apply (merge) the layer mask to the layer
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_select_subject
Run Select Subject on the active layer (creates a pixel selection only, no mask). Users often say: cut out, isolate subject, select person, select object. Use when: you need a subject selection for masking, fill, or further edits. Do NOT use when: full background removal with mask — use photoshop_recipe_remove_background. Returns: JSON { ok, summary, details: { selected, method } }. Preconditions: PS ≥ 23, active document, non-Background active layer with a recognizable subject. Side effects: replaces current selection.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
sample_all_layers | boolean | Sample all layers for autoCutout fallback (default false) |
photoshop_content_aware_fill
Fill the current pixel selection using Content-Aware Fill. Users often say: remove distraction, erase object, content aware fill, inpaint selection. Use when: a rectangular or other selection covers the area to remove/replace. Do NOT use when: no selection exists — use photoshop_select_rectangle first. Do NOT use when: generative remove is requested — not scriptable; use this fill or manual touch-up. Returns: JSON { ok, summary, details: { filled } }. Preconditions: active document and active pixel selection. Side effects: modifies pixels inside selection; deselects afterward.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_apply_gradient_mask
Apply a linear black-to-white gradient on the active layer mask channel (fade/blend). Users often say: fade into background, gradient mask, blend subject, soft edge fade. This paints on an existing layer mask — not a Gradient Fill layer. Use when: softening edges or fading a layer into the background through its mask. Do NOT use when: subject is not isolated — use photoshop_recipe_remove_background or photoshop_create_layer_mask first. Returns: JSON { ok, summary, details: { applied, direction, angle, mask_auto_created? } }. Preconditions: active document and active layer. Creates a rev…
| Parameter | Type | Description |
|---|---|---|
angle_deg | number | Override gradient angle in degrees (optional) |
direction | string | Gradient fade direction on the mask (default bottom_to_top) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
end_pct | number | Gradient end along fade axis (0-100) |
start_pct | number | Gradient start along fade axis (0-100) |
photoshop_create_clipping_mask
Create a clipping mask on the active layer (or a named layer). Users often say: clip to layer below, clipping mask, clip this layer, mask to shape below. Use when: the active layer should be visible only where the layer directly below it has opaque pixels. Do NOT use when: the layer is already clipped — returns success with already_clipping. Do NOT use when: the layer is the bottom-most layer — there is no base layer to clip into. Returns: JSON { ok, summary, details: { layer_name, is_clipping, already_clipping? } }. Preconditions: active document; target layer must sit directly above t…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
layer_name | string | Optional exact layer name (recursive search). Default: active layer. |
photoshop_release_clipping_mask
Release (remove) the clipping mask from the active layer (or a named layer). Users often say: unclip, release clipping mask, remove clipping mask. Use when: a clipped layer should become independent again. Do NOT use when: the layer is not clipped — returns not_clipping error. Returns: JSON { ok, summary, details: { layer_name, is_clipping: false } }. Preconditions: active document; target layer must currently be a clipping mask (grouped). Side effects: sets layer.grouped = false; one history step.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
layer_name | string | Optional exact layer name (recursive search). Default: active layer. |
photoshop_play_action
Play a recorded action from the Actions palette. Names are the ones the Actions panel shows, in the Photoshop UI language: the built-in set is "Default Actions" only in English Photoshop. When the set or the action does not exist, the error (code invalid_arguments) lists the names this Photoshop has; retry with one of them.
| Parameter | Type | Description |
|---|---|---|
actionName * | string | Name of the action to play, exactly as the Actions panel shows it |
actionSetName * | string | Name of the action set containing the action, exactly as the Actions panel shows it (localized for the sets Photoshop ships) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_execute_script
Execute custom ExtendScript (JSX) code inside Photoshop (advanced escape hatch). Use when: no existing tool covers the operation and you can write safe JSX. Do NOT use when: a recipe or atomic tool exists — prefer photoshop_recipe_* or photoshop_* tools. Returns: script return value serialized as text/JSON. IMPORTANT: Your code runs inside a wrapping IIFE. Use an explicit `return` to pass data back — a bare trailing expression returns undefined. Example: `return { ok: true };` Objects are serialized with toSource() and parsed automatically on macOS and Windows. Long scripts: pass timeout…
| Parameter | Type | Description |
|---|---|---|
code * | string | ExtendScript code to execute |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
timeout_ms | number | Script timeout in milliseconds (default 30000, max 600000). Override with env PHOTOSHOP_SCRIPT_TIMEOUT. Use for long loops, batch jobs, or large documents. |
photoshop_undo
Undo the last operation(s) - equivalent to Ctrl/Cmd+Z
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
steps | number | Number of steps to undo (default: 1) |
photoshop_redo
Redo the previously undone operation(s) - equivalent to Ctrl/Cmd+Shift+Z
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
steps | number | Number of steps to redo (default: 1) |
photoshop_get_history
Get the history states of the active document
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_move_layer_to_position
Move the active layer relative to another layer
| Parameter | Type | Description |
|---|---|---|
position * | string | Position relative to target layer |
targetLayerName * | string | Name of the layer to move relative to |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_move_layer_to_top
Move the active layer to the top of the layer stack
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_move_layer_to_bottom
Move the active layer to the bottom of the layer stack
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_move_layer_up
Move the active layer up one position in the layer stack
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_move_layer_down
Move the active layer down one position in the layer stack
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_get_state
Return a cheap read-only snapshot of Photoshop session state (active document, layer, selection). Use when: before any tool that needs an active document/layer, or after an error to recover context. Do NOT use when: you only need a visual preview — use photoshop_get_preview instead. Returns: JSON with hasDocument, openDocumentCount, document.id/name/dimensions/colorMode/artboards, activeLayer, activeArtboard, hasSelection. Capture document.id and pass it as document_id on later mutating calls. Artboard ids come from document.artboards[].id. When openDocumentCount > 1, call photoshop_list_d…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_get_preview
Export the active document as a base64 JPEG preview for visual verification. Use when: after visual edits to confirm result before reporting success to the user. Do NOT use when: you only need numeric state — use photoshop_get_state (much cheaper). Returns: MCP image content block (JPEG) plus metadata text. Preconditions: active document required. Side effects: creates and deletes a temp file; does not modify the document.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
max_dimension_px | number | Maximum long edge in pixels (default 1024) |
quality | number | JPEG quality 1–12 (default 8) |
photoshop_get_capabilities
Return version-aware feature flags for the installed Photoshop (Select Subject v2, Generative Fill, etc.). Use when: once per session before suggesting AI-powered features or gated recipes. Do NOT use when: Photoshop version is already known from photoshop_get_version. Returns: JSON { version, features: { select_subject_v2, generative_fill, ... } }. Preconditions: none. Side effects: none.
photoshop_generative_fill
Fill the current selection using Adobe Generative Fill (Firefly) with a text prompt. Use when: adding or replacing content inside a selection with generative AI. Do NOT use when: no selection exists — create one first or use photoshop_select_subject. Do NOT use when: Photoshop version lacks generative_fill — check photoshop_get_capabilities. Returns: { ok, summary, details: { action_id, prompt, wait } }. Preconditions: PS 24+ with generative credits; active pixel selection. Side effects: modifies pixels in selection; may consume Adobe generative credits.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Describe what to generate in the selection |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_generative_remove
Remove content using the AI Remove tool (or generative fill fallback) on the current selection. Use when: erasing distractions, people, or objects with generative AI. Do NOT use when: generative unavailable — fallback to photoshop_recipe_remove_distraction. Returns: { ok, summary, details }. Preconditions: selection or auto_select_subject; generative_fill capability. Side effects: inpaints selected region; consumes generative credits when cloud-backed.
| Parameter | Type | Description |
|---|---|---|
auto_select_subject | boolean | Run Select Subject when no selection exists (default false) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
feather_px | number | Edge feather before remove (0-20, default 0) |
photoshop_generative_expand
Extend the canvas beyond its edges using Generative Expand (Firefly): enlarges the canvas by amount_px on the chosen side(s) and fills the new area with Generative Fill (outpainting). Use when: outpainting, extending background, or expanding composition. Returns: { ok, summary, details: { direction, prompt, wait } }. Preconditions: active document; generative_fill capability. Side effects: enlarges canvas with generated content.
| Parameter | Type | Description |
|---|---|---|
amount_px | number | Pixels added on each expanded side (default: 25% of the longer side) |
direction | string | Expand direction (default all) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
prompt | string | Describe how to extend the image |
photoshop_generative_upscale
Upscale the active document using Generative Upscale (PS 27+). Use when: increasing resolution with AI detail recovery. Do NOT use when: generative_upscale flag is false — use photoshop_resize_image. Returns: { ok, summary, details } — or generative_timeout while Photoshop renders behind its progress dialog (1–3 min): poll photoshop_get_state; the result opens as a NEW active document named "… Firefly Upscaler Nx". Preconditions: generative_upscale capability; signed-in Adobe account.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
target_scale | number | Target scale factor (2 or 4) |
photoshop_sky_replacement
Replace the sky using Photoshop native Sky Replacement when available. Use when: a sky image path is provided and native AI sky replacement is supported. Fallback: photoshop_recipe_sky_blend for manual composite. Returns: { ok, summary, details }. Preconditions: active document; optional sky_image_path for custom sky.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
sky_image_path | string | Optional absolute path to a sky image file |
photoshop_generate_image
Photoshop Generate Image (Firefly ImageGen): create an image from a text prompt. Use when: the user asks for ImageGen, text-to-image, or a new picture from a description. Returns: { ok, summary, details }. Preconditions: generative_fill capability; Adobe generative credits.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Image description |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
height | number | Height if creating new doc (default 1024) |
width | number | Width if creating new doc (default 1024) |
photoshop_neural_filter
Apply a Photoshop Neural Filter via the companion UXP bridge plugin. Use when: skin smoothing, harmonize composite layers, depth blur, super zoom, or colorizing B&W photos. Do NOT use when: uxp_bridge_reachable is false — install uxp-plugin per docs/development.md. Returns: { ok, summary, details }. Preconditions: UXP bridge plugin running in Photoshop; PS 22+.
| Parameter | Type | Description |
|---|---|---|
filter * | string | Neural filter to apply |
blur | number | Skin smoothing blur 0-100 (skin_smoothing only) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
reference_layer_id | number | Layer id for harmonize reference (harmonize only) |
smoothness | number | Skin smoothing smoothness 0-100 (skin_smoothing only) |
photoshop_apply_layer_style
Apply a layer style (drop shadow, outer glow, stroke, bevel & emboss) to the active layer via Action Manager layer effects. Users often say: add shadow, glow effect, outline this layer, stroke, bevel, 3D button look, katmana gölge ver. Use when: quick presentational effects on the active layer (cards, buttons, mockups, text pop). Do NOT use when: you need full custom layer-effects control — use photoshop_execute_script with a custom layerEffects descriptor. Returns: JSON { ok, summary, details: { style, layer_name } }. Preconditions: active document with an active pixel/text layer. Side…
| Parameter | Type | Description |
|---|---|---|
angle | number | Light angle in degrees (drop shadow / bevel) |
blue | number | Effect color blue (0-255) |
distance | number | Offset distance in pixels (drop shadow only) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
green | number | Effect color green (0-255) |
opacity | number | Effect opacity (0-100) |
red | number | Effect color red (0-255) |
size | number | Blur/size in pixels (stroke width for stroke) |
style | string | Which effect to apply |
photoshop_apply_lut
Apply a Color Lookup (3D LUT) adjustment layer for cinematic color grading. Accepts a built-in LUT name (e.g. "Crisp_Warm.3dl", "Kodak 5218 Fuji 3510.3dl", "Moonlight.3dl") or an absolute path to a .cube/.3dl/.look file. Users often say: cinematic grade, film look, teal and orange, apply LUT, sinematik renk. Use when: stylistic non-destructive color grade in one step. Do NOT use when: basic tonal fixes — use photoshop_adjust_curves or photoshop_auto_levels. Returns: JSON { ok, summary, details: { layer_name, lut, lut_source } }. Preconditions: active document. Side effects: adds a Color L…
| Parameter | Type | Description |
|---|---|---|
lut * | string | Built-in LUT file name (e.g. "Crisp_Warm.3dl") or absolute path to a .cube/.3dl/.look file |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_adjust_vibrance
Create a Vibrance adjustment layer. Vibrance boosts muted colors while protecting skin tones. Users often say: make colors pop (safely), boost saturation without clown look. Returns: JSON { ok, summary, details: { layer_name, vibrance, saturation } }. Preconditions: active document. Side effects: adds a Vibrance adjustment layer.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
saturation | number | Saturation (-100 to 100) |
vibrance | number | Vibrance (-100 to 100) |
photoshop_adjust_exposure
Create an Exposure adjustment layer (stops, offset, gamma correction). Users often say: fix underexposed photo, brighten by a stop, gamma fix. Returns: JSON { ok, summary, details: { layer_name, exposure, offset, gamma } }. Preconditions: active document. Side effects: adds an Exposure adjustment layer.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
exposure | number | Exposure in stops (-20 to 20) |
gamma | number | Gamma correction (0.01 to 9.99) |
offset | number | Offset (-0.5 to 0.5) |
photoshop_apply_photo_filter
Create a Photo Filter adjustment layer (warming/cooling/custom tint with density control). Users often say: warm it up, cool it down, add a tint, golden hour look. Returns: JSON { ok, summary, details: { layer_name, color, density } }. Preconditions: active document. Side effects: adds a Photo Filter adjustment layer.
| Parameter | Type | Description |
|---|---|---|
blue | number | Filter color blue (0-255); warming ≈ 0 |
density | number | Filter density percent (0-100) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
green | number | Filter color green (0-255); warming ≈ 138 |
preserve_luminosity | boolean | Preserve luminosity (default true) |
red | number | Filter color red (0-255); warming ≈ 236 |
photoshop_apply_gradient_map
Create a Gradient Map adjustment layer (black→white by default) for duotone/B&W tonal remapping. Users often say: duotone look, gradient map B&W, remap tones. Returns: JSON { ok, summary, details: { layer_name, reverse } }. Preconditions: active document. Side effects: adds a Gradient Map adjustment layer.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
reverse | boolean | Reverse the gradient (white→black) |
photoshop_list_datasets
List the data sets defined on the active document (Image > Variables > Data Sets). Use when: before applying data sets or debugging a data-driven template. Returns: JSON { ok, summary, details: { datasets, active, count } }. Preconditions: active document with variables/data sets defined.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_import_datasets
Import a Photoshop variables/data-sets XML file into the active document (the same file Image > Variables > Data Sets > Import accepts). Users often say: load data sets, import variables XML, data-driven graphics. Use when: the template PSD already has variable-bound layers and you want to load rows from an XML file. Do NOT use when: generating a batch from a CSV directly — use photoshop_recipe_csv_to_cards. Returns: JSON { ok, summary, details: { count, datasets } }. Preconditions: active document with variables defined (Image > Variables > Define).
| Parameter | Type | Description |
|---|---|---|
xml_path * | string | Absolute path to the variables/data-sets XML file |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_generate_from_datasets
Batch-export the active document once per data set: applies each data set, saves a copy, moves on. "Mail merge for images". Users often say: generate all variants, batch personalize, render every row. Use when: data sets are already imported (photoshop_import_datasets) and you want one file per row. Returns: JSON { ok, summary, details: { exported, skipped, output_paths } }. Preconditions: active document with data sets. Side effects: writes files to output_dir.
| Parameter | Type | Description |
|---|---|---|
output_dir * | string | Directory for generated files (created if missing) |
dataset_names | array | Subset of data set names to export (default: all) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | Output format |
photoshop_image_stack
Load 2+ image files into one document, convert to a smart object and apply a stack mode (mean/median/max/min/...). Classic "remove tourists from N shots" or noise reduction — no generative AI involved. Users often say: remove tourists, median stack, average these photos, noise stack, turistleri sil. Use when: the user has multiple aligned shots of the same scene and wants a statistical blend. Do NOT use when: removing a single object from one photo — use photoshop_generative_remove or photoshop_content_aware_fill. Returns: JSON { ok, summary, details: { file_count, mode, layer_name } }.…
| Parameter | Type | Description |
|---|---|---|
files * | array | Absolute paths of the images to stack (min 2) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
mode | string | Stack mode — median removes transient objects, mean reduces noise |
photoshop_export_as
Export a copy of the active document as PNG, JPEG, WebP or AVIF without changing the open document. WebP/AVIF require Photoshop 23.2+/recent builds and return a clear error when unsupported. Users often say: export for web, save as webp, quick export png. Use when: web-ready delivery formats are needed (WebP/AVIF/modern pipelines), or one artboard from a multi-screen file. Do NOT use when: saving the working document itself — use photoshop_save_document. For every artboard at once use photoshop_export_artboards. Returns: JSON { ok, summary, details: { path, format, method, artboard_id? }…
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute output file path (extension should match format) |
artboard_id | number | Optional artboard layer id from photoshop_list_artboards — export that board only instead of the full canvas |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | Export format |
quality | number | Quality 0-100 (JPEG/WebP/AVIF) |
photoshop_list_artboards
List artboards in the active document with id, name, pixel bounds, and which one contains the active layer. Users often say: artboards, 画板, multi-screen, iPhone and iPad frames, device layouts. Use when: the document is an artboard file (UI/multi-screen) and you need artboard_id before export or edits. Do NOT use when: listing open document tabs — use photoshop_list_documents. Returns: JSON { ok, summary, details: { count, artboards[] } }. Empty list if the document has no artboards. Preconditions: active document. Side effects: none.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_create_artboard
Create a Photoshop artboard (AM artboardSection) at an explicit origin or placed to the right of existing artboards. Users often say: add iPhone frame, new artboard, multi-screen layout, 画板 ekle. Use when: building a multi-device / multi-screen document. First artboard converts a regular canvas into an artboard document. Do NOT use when: you only need a new document tab — use photoshop_create_document. Returns: JSON { ok, summary, details: { artboard, count } }. Preconditions: active document. Side effects: adds an artboard layer group.
| Parameter | Type | Description |
|---|---|---|
height * | number | Artboard height in pixels |
width * | number | Artboard width in pixels |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
left | number | Left origin in pixels (default: 32px to the right of existing artboards, or 0) |
name | string | Artboard name (default Artboard) |
top | number | Top origin in pixels (default: aligned with existing artboards, or 0) |
photoshop_set_active_artboard
Select an artboard layer group by artboard_id (preferred) or unique name so subsequent edits and Select All target that board. Use when: switching between device frames in an artboard document. Do NOT use when: switching document tabs — use photoshop_set_active_document. Returns: JSON { ok, summary, details: { artboard } }. Preconditions: target artboard exists (photoshop_list_artboards). Side effects: changes the active layer.
| Parameter | Type | Description |
|---|---|---|
artboard_id | number | Layer id from photoshop_list_artboards / photoshop_get_state |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
name | string | Exact artboard name (ambiguous if duplicates — use artboard_id) |
photoshop_export_artboards
Export every artboard in the active document to a folder (duplicate + crop to artboardRect, then PNG/JPEG/WebP/AVIF). Users often say: export all artboards, multi-screen PNG, 画板 çıktısı. Use when: delivering one file per artboard. Long jobs use a 600s script timeout. Do NOT use when: exporting the whole canvas once — use photoshop_export_as. Returns: JSON { ok, summary, details: { exported[], failed[], folder } }. Preconditions: document with at least one artboard. Side effects: writes files; does not modify the original.
| Parameter | Type | Description |
|---|---|---|
folder * | string | Absolute output folder (created if missing) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | Export format |
quality | number | Quality 0-100 (JPEG/WebP/AVIF) |
photoshop_recipe_remove_background
THE tool for "remove background" / "arka planı sil" / cut out / isolate subject. Call this once and stop. Unlocks a locked Background layer, then runs Photoshop native Remove Background (Select Subject / Color Range only if native is unavailable). One undo reverts everything. Use when: the user wants the background gone. Hair, busy interiors, product shots — still this tool. Do NOT rasterize, duplicate, hide layers, select_subject, create_layer_mask, or execute_script instead of this recipe. Returns: { ok, summary, undo_history_states_consumed, details.method = remove_background | remove_…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
feather_px | number | Edge feather in pixels (0-20). 0 = hard edge (default for product shots), 1-3 = soft edge for portraits. |
keep_shadow | boolean | Reserved for a future iteration; currently recorded in the response but no shadow layer is created yet. |
use_generative | boolean | After masking, run generative edge cleanup on inverted background selection (default false) |
photoshop_recipe_enhance_portrait
Set up a non-destructive portrait enhancement: duplicates the active layer, builds a frequency separation pair (low/high) for skin smoothing, and adds an auto-tone curves adjustment on top. Grouped as "Enhance Portrait" and reversible with one undo. Users often say: smooth skin, retouch portrait, fix blemishes, clean up face. Use when: the user asks to "enhance", "retouch", "clean up" or "smooth" a portrait photo and is happy with a baseline that they can further tweak interactively. Do NOT use when: the user wants destructive, final edits — recommend manual frequency separation work via p…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
intensity | string | Retouch strength: low (subtle), medium (default), high (heavier smoothing). |
skin_smoothing | boolean | Whether to build the frequency separation pair. When false, only the auto-tone curves are added. |
use_neural_skin | boolean | Apply Neural Filter skin smoothing via UXP bridge before frequency separation (default false) |
photoshop_recipe_prepare_for_web
Export a web-optimized version of the active document: duplicate, convert to sRGB, downscale longest edge, sharpen for screen, save to disk. The source PSD stays untouched. Use when: the user wants a shareable JPEG/PNG sized for the web from the current artwork. Do NOT use when: the user wants multiple platform-specific exports — use photoshop_recipe_export_social_variants. Do NOT call photoshop_save_document afterwards; this recipe already wrote the file. Returns: { ok, summary, output_paths, undo_history_states_consumed }. Preconditions: active document. Format is jpeg (default) or png.…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | Output format: jpeg (default) or png. |
max_dimension_px | number | Longest-edge pixel cap (default 2048). Min 64, max 8192. |
path | string | Optional output path. Absolute paths used as-is. Relative paths resolve under ~/.photoshop-mcp/exports[/<chat-id>]. Omit to auto-generate. |
quality | number | JPEG quality on the Photoshop 1-12 scale. Default 9. Ignored for png. |
photoshop_recipe_export_social_variants
Render one JPEG per requested social-media platform from the active document. Each variant is center-cropped/resized to the platform spec and saved to disk. Use when: the user wants multi-platform deliverables in one shot. Do NOT use when: only one export is needed (use photoshop_recipe_prepare_for_web instead) or when platforms differ by content rather than crop (recipe does not change content, only frame). Returns: { ok, summary, output_paths, details: { variants } }. Preconditions: active document. Aspect ratios that differ from the source result in a center-crop (no padding). Side effec…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
platforms | array | Slugs of platforms to export. Known: instagram_post, instagram_story, instagram_reel, x_post, x_header, facebook_post, facebook_cover, linkedin_post, linkedin_banner, youtube_thumbnail, tiktok_vertica… |
quality | number | JPEG quality on the Photoshop 1-12 scale. Default 9. |
photoshop_recipe_apply_color_grade
Apply a named color grading preset as a non-destructive layer group (Hue/Saturation adjustment + brightness/contrast tweak). Users often say: cinematic look, teal and orange, moody grade, color grade. Use when: the user wants a quick stylistic look applied to the active document. Do NOT use when: the user wants subject-specific color edits (e.g. only the skin) — current recipe applies globally. Returns: { ok, summary, details: { preset, group_name } }. Preconditions: active document in RGB mode. CMYK/Grayscale return unsupported_color_mode. Side effects: adds one layer group with adjustm…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
preset | string | Preset name. One of: cinematic, vintage, teal_orange, bw, warm_film, cool_dusk. Default cinematic. |
photoshop_recipe_frequency_separation
Build a frequency separation stack (Low + High) on top of the active layer for hands-on retouching. Does not apply any smoothing itself — the user paints into the layers afterwards. Users often say: frequency separation, split texture and color, manual retouch setup. Use when: the user explicitly wants frequency separation setup, typically for portrait or product retouching. Do NOT use when: the user wants a one-shot result without painting — use photoshop_recipe_enhance_portrait instead. Returns: { ok, summary, details: { radius_px, group_name } }. Preconditions: active document with…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
radius_px | number | Gaussian blur radius for the low-frequency layer. 4-8 for portraits, 10-20 for products. Default 6. Range 1-50. |
photoshop_recipe_batch_mockup_replace
Iterate a directory of asset images, replace the contents of the named Smart Object in the active mockup PSD for each asset, and export a flattened JPEG per variant. The mockup's perspective/warp on the Smart Object is preserved. Use when: the user has a mockup PSD and wants to render it once per design asset (logos, screens, product photos). Do NOT use when: the asset is not a single layer (use photoshop_place_image manually) or when the active document has no Smart Object with the requested name. Returns: { ok, summary, output_paths, details: { variants: [{ source_asset, output_path }] } }…
| Parameter | Type | Description |
|---|---|---|
assets_dir * | string | Absolute path to the directory containing asset files. Subdirectories are NOT recursed. Allowed extensions: jpg/jpeg/png/tif/tiff/psd/psb/webp. |
smart_object_layer_name * | string | Exact name of the Smart Object layer in the active document. Case-sensitive. |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
quality | number | JPEG quality on the Photoshop 1-12 scale. Default 10. |
photoshop_recipe_organize_layers
Tidy the active document's layer stack: rename layers using a consistent scheme and optionally auto-group them by kind. Never deletes, merges or rasterizes — visual output stays identical. Use when: the user complains about layer mess ("layer 1 copy 2", "untitled 7") or asks for organization. Do NOT use when: the user wants smart, semantic naming based on layer content beyond text — recipe only summarizes text layers, not image content. Returns: { ok, summary, details: { renamed_count, group_count } }. Preconditions: active document. Side effects: renames top-level layers and (optionall…
| Parameter | Type | Description |
|---|---|---|
auto_group | boolean | Group layers by kind (text / image / shape / adjustment). Default true. |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
naming_scheme | string | How to rename layers: type_index (default, e.g. text_01), content_summary (text layers get a slug of their content; other kinds get type_index), preserve (do not rename). |
photoshop_recipe_gradient_fade
One-shot gradient fade on the active layer mask: creates a reveal-all mask if needed, then paints a linear black-to-white gradient for soft edge blending. Wrapped in a single undoable history step. Users often say: fade into background, gradient mask, blend subject, soft edge fade, arka planı yumuşat. This applies a linear gradient on the layer mask channel — not a Gradient Fill layer. Use when: the user wants the active layer to fade into the background or layers below through its mask. Do NOT use when: the subject is not isolated — use photoshop_recipe_remove_background first. Do NOT…
| Parameter | Type | Description |
|---|---|---|
angle_deg | number | Optional gradient angle override in degrees |
direction | string | Gradient fade direction on the mask (default bottom_to_top) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
end_pct | number | Gradient end along fade axis (0-100) |
start_pct | number | Gradient start along fade axis (0-100) |
photoshop_recipe_sky_blend
One-shot sky composite: places an external sky image, adds a layer mask, and applies a horizon gradient fade. Wrapped in a single undoable history step. Users often say: replace sky, fix blown sky, better clouds, swap sky background. Use when: the user provides a sky image path and native sky replacement is unavailable or manual blend is preferred. Do NOT use when: no sky_image_path is available — ask the user for an absolute file path first. Do NOT use when: fading the active subject layer only — use photoshop_recipe_gradient_fade. Returns: { ok, summary, undo_history_states_consumed,…
| Parameter | Type | Description |
|---|---|---|
sky_image_path * | string | Absolute path to the sky image file (JPEG, PNG, etc.) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
feather_pct | number | Half-width of the transition zone around the horizon (0-50, default 15) |
horizon_pct | number | Document-height percentage where sky meets landscape (0-100, default 50) |
use_native_sky | boolean | Try native Sky Replacement first when supported (default true when capable) |
x | number | Placement X offset in pixels (default 0) |
y | number | Placement Y offset in pixels (default 0) |
photoshop_recipe_dodge_burn
One-shot dodge & burn setup: creates a 50% gray layer in Overlay or Soft Light mode for non-destructive light sculpting. Wrapped in a single undoable history step. Users often say: dodge and burn, sculpt light, lighten face, darken shadows. Use when: the user wants a ready-to-paint dodge & burn layer above the subject. Do NOT use when: the user wants automated retouch — this only sets up the paint layer; paint white (dodge) and black (burn) manually at low opacity. Do NOT use when: automated portrait smoothing is enough — use photoshop_recipe_enhance_portrait instead. Returns: { ok, sum…
| Parameter | Type | Description |
|---|---|---|
blend_mode | string | Retouch blend mode: overlay (default, stronger) or soft_light (gentler) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
photoshop_recipe_remove_distraction
One-shot distraction removal: generative AI remove when available, else content-aware fill. Wrapped in a single undoable history step. Users often say: remove that person, erase distraction, content aware remove, clone out object. Use when: the user has selected the object or region to remove. Do NOT use when: no selection exists — use photoshop_select_rectangle or photoshop_select_subject first. Returns: { ok, summary, undo_history_states_consumed, details }. Preconditions: active document with an active pixel selection. Side effects: fills/removes selected pixels; clears selection.
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
feather_px | number | Edge feather in pixels before remove (0-20, default 0) |
use_generative | boolean | Prefer generative remove when Photoshop supports it (default true when capable) |
photoshop_recipe_split_carousel
Split the active wide document into N equal vertical slices and export them as sequentially numbered files for a seamless Instagram/TikTok carousel (panorama swipe effect). Use when: the user wants a seamless/swipeable carousel, split panorama, or multi-slide export of one wide design. Typical request: "split this into a 5-slide carousel". Do NOT use when: the user wants the same content reframed per platform (use photoshop_recipe_export_social_variants) or a single crop (use photoshop_crop_document). Returns: { ok, summary, output_paths (in slide order), details: { slides, slice_width } }.…
| Parameter | Type | Description |
|---|---|---|
slides * | number | Number of carousel slides to split into (2-10). |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | Output format. Default jpg. |
quality | number | JPEG quality on the Photoshop 1-12 scale (jpg only). Default 10. |
slide_height | number | Optional final slide height in px (e.g. 1350 for Instagram portrait). Requires slide_width. |
slide_width | number | Optional final slide width in px (e.g. 1080). Requires slide_height. Each slice is center-cropped/resized to this size. Omit to keep native slice dimensions. |
photoshop_recipe_batch_watermark
Apply a text or logo watermark to every image in a folder and export watermarked JPEGs. Replaces the clunky record-an-action + File > Automate > Batch workflow. Use when: the user wants to watermark many photos at once (copyright text, studio logo). Do NOT use when: watermarking a single open document (use photoshop_create_text_layer / photoshop_place_image directly) or removing watermarks (not supported). Returns: { ok, summary, output_paths, details: { processed, failed: [{ file, error }] } }. Files that fail are skipped, not fatal. Preconditions: assets_dir exists; either text or logo_pa…
| Parameter | Type | Description |
|---|---|---|
assets_dir * | string | Absolute path to the folder of images to watermark. Subdirectories are NOT recursed. Allowed extensions: jpg/jpeg/png/tif/tiff/webp. |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
font_size | number | Text watermark size in pixels. Default 0 = auto (4% of each image height, min 8px). |
logo_path | string | Absolute path to a logo image (transparent PNG recommended). Required unless text is given. If both are given, text wins. |
margin_px | number | Distance from the chosen edge(s) in pixels. Default 24 (ignored for center). |
opacity | number | Watermark layer opacity 0-100. Default 40. |
position | string | Watermark placement. Default bottom_right. |
quality | number | JPEG quality on the Photoshop 1-12 scale. Default 10. |
scale_pct | number | Logo watermark width as a percentage of image width (1-100). Default 15. Logo mode only. |
text | string | Watermark text (e.g. "© Jane Doe 2026"). White, semi-transparent. Required unless logo_path is given. |
photoshop_recipe_passport_photo
Turn the active portrait into a passport/ID photo: removes the background via Select Subject, replaces it with white, crops around the subject with ICAO-style headroom, resizes to the exact official pixel size at 300 DPI, and exports a JPEG. Optionally also builds a 10×15 cm print sheet with multiple copies. Use when: passport photo, visa photo, ID photo, vesikalık, biyometrik fotoğraf. Do NOT use when: the document has no clear single subject, or official compliance must be guaranteed — head-size rules are approximated from subject bounds (no face detection); official acceptance is NOT…
| Parameter | Type | Description |
|---|---|---|
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
make_sheet | boolean | Also export a 10×15 cm (1200×1800 px @300 DPI) print sheet tiled with copies. Default false. |
quality | number | JPEG quality on the Photoshop 1-12 scale. Default 11. |
spec | string | Target size: us_2x2 (600×600 px), eu_35x45 (413×531 px), tr_50x60 (591×709 px). All at 300 DPI. Default us_2x2. |
photoshop_recipe_csv_to_cards
Data-driven graphics batch: convert a CSV file into Photoshop data sets, apply each row to the active template document and export one image per row. "Mail merge for images" — name cards, badges, certificates, personalized banners. Users often say: csv to images, batch name cards, personalized banners, generate badges from spreadsheet, sertifika bastır. CSV rules: first row = variable names matching the variables defined in the template PSD (Image > Variables > Define). A cell holding an absolute path to an image file (.png/.jpg/.webp/.tif/.psd) is treated as a pixel-replacement variable.…
| Parameter | Type | Description |
|---|---|---|
csv_path * | string | Absolute path to the CSV file (first row = variable names) |
output_dir * | string | Directory for generated files (created if missing) |
document_id | number | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |
format | string | Output format (default JPEG) |
ps_catalog
List Photoshop operations available through ps_do. Without `category`: categories with counts and operation names. With `category`: every operation of that category with its parameters. Call it before using an operation you have not used in this session.
| Parameter | Type | Description |
|---|---|---|
category | string | document | layer | text | selection | mask | filter | adjust | color | generative | neural | smart_object | transform | history | action | export | style | data | stack | state | image | recipe |
ps_do
Run one Photoshop operation by name (see ps_catalog), e.g. {"operation":"create_text_layer","args":{"text":"Hi"}}. Returns the operation result JSON. Prefer this over writing ExtendScript.
| Parameter | Type | Description |
|---|---|---|
operation * | string | operation name from ps_catalog (without the photoshop_ prefix) |
args | object | operation parameters |
ps_batch
Run several operations in order. Each op: {operation, args}. Stops at the first error when stopOnError (default true). Returns one result per op.
| Parameter | Type | Description |
|---|---|---|
ops * | array | |
stopOnError | boolean |
ps_get_state
Active document state: name, size, mode, layers summary, selection. Cheap — call it before and after edits instead of previews.
ps_get_layers
Layer tree of the active document (names, types, visibility, opacity, blend modes).
ps_save_document
Save the active document (optionally to a new path / format). Save a copy before irreversible steps (flatten, merge, overwrite).
| Parameter | Type | Description |
|---|---|---|
format | string | PSD | JPEG | PNG |
path | string | absolute path; omit to save in place |
ps_export_frame
Export the current view of the active document as a PNG file to `path` (absolute). Use it for check frames the user will look at; name the file descriptively.
| Parameter | Type | Description |
|---|---|---|
path * | string | absolute .png path |
quality | number | for JPEG/WebP only |
ps_execute_script
Run arbitrary ExtendScript in Photoshop and return its result. Use only when no ps_do operation covers the task. The code runs inside a function: use an explicit `return` to pass data back (objects are serialized); a bare trailing expression returns undefined.
| Parameter | Type | Description |
|---|---|---|
script * | string | ExtendScript (ES3) source; end with `return …` |
ps_recipe
Run a multi-step recipe by name (ps_catalog category "recipe"): remove_background, enhance_portrait, apply_color_grade, prepare_for_web, sky_blend, …
| Parameter | Type | Description |
|---|---|---|
name * | string | |
args | object |
ps_skill
The Photoshop agent skill. No `doc`: the router — tools, order of work, addressing, what scripts cannot do in Photoshop and which reference to read; read it at the start of any Photoshop task beyond a single read or edit. `doc`: one reference — Photoshop's generative tools (Generative Fill / Expand / Remove, Generate Image, partner models and credits, reference images), retouch (Remove tool, Harmonize, Generative Upscale, Neural Filters), selection and masking, colour and retouch recipes, batch and export, AI Assistant, multi-tool combos, gotchas.
| Parameter | Type | Description |
|---|---|---|
doc | string | reference: ai-assistant | batch-export | color-retouch | combos | generative | gotchas | retouch | selection-masking |