Photoshop MCP

MCP Tools Reference

Generated by pnpm docs:tools from the live catalog — do not edit by hand.

308 tools: 275 supported, 21 partial (documented approximation), 6 require an external AI provider, 6 unsupported (return UNSUPPORTED_OPERATION with an alternative).

Common output schema

Every tool returns one text content block containing JSON, plus image blocks when it renders a preview:

{ "ok": true, "tool": "<name>", "source": "photoshop | mock | server", "data": { "...tool specific..." }, "warnings": ["..."] }

Errors set isError: true and return { "ok": false, "tool": "<name>", "error": { "code": "PHOTOSHOP_ERROR", "message": "...", "details": {} } }. Codes: VALIDATION_ERROR, PHOTOSHOP_NOT_CONNECTED, PHOTOSHOP_ERROR, BRIDGE_TIMEOUT, CANCELLED, NO_ACTIVE_DOCUMENT, LAYER_NOT_FOUND, DOCUMENT_NOT_FOUND, PATH_NOT_ALLOWED, FILE_EXISTS, FILE_NOT_FOUND, CONFIRMATION_REQUIRED, UNSUPPORTED_OPERATION, PROVIDER_NOT_CONFIGURED, PROVIDER_ERROR, LIMIT_EXCEEDED, WORKFLOW_FAILED, INTERNAL_ERROR.

Permissions. Read-only tools need nothing beyond a reachable Photoshop (COM on Windows, AppleScript on macOS). Write tools need an open document (unless they create one). Tools that touch files need the path inside ALLOWED_PATHS. Destructive tools need confirm: true. AI-provider tools need provider credentials and network access (openWorldHint).

Status

photoshop_status

Detect installed Photoshop versions, bridge readiness (COM on Windows, AppleScript on macOS) and whether Photoshop is running. With probe: true also queries the running application (version, open documents) via a real script call. Call first.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): ps.info
Input schema
{
  "type": "object",
  "properties": {
    "probe": {
      "type": "boolean",
      "default": true,
      "description": "Execute a status script inside Photoshop (may launch it if auto-launch is enabled)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"photoshop_status","arguments":{}}

1. Document management

create_document

Create a new Photoshop document (pixels).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create
Input schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "default": "Untitled"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "resolution": {
      "type": "number",
      "minimum": 1,
      "maximum": 10000,
      "default": 72
    },
    "mode": {
      "type": "string",
      "enum": [
        "rgb",
        "cmyk",
        "grayscale",
        "lab",
        "bitmap"
      ],
      "default": "rgb"
    },
    "bitDepth": {
      "type": "number",
      "enum": [
        8,
        16,
        32
      ],
      "default": 8
    },
    "background": {
      "type": "string",
      "enum": [
        "white",
        "black",
        "transparent",
        "backgroundColor"
      ],
      "default": "white"
    }
  },
  "required": [
    "width",
    "height"
  ],
  "additionalProperties": false
}

Example: {"name":"create_document","arguments":{"width":1,"height":1}}

open_document

Open an image or PSD from an allowed directory.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open
Input schema
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"open_document","arguments":{"path":"designs/example.png"}}

close_document

Close a document. save: ‘yes’ saves first (needs an existing path); ‘no’ discards unsaved changes and requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): doc.close
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "save": {
      "type": "string",
      "enum": [
        "yes",
        "no"
      ],
      "default": "yes"
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"close_document","arguments":{}}

save_document

Save the document to its current file (must have been saved before).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.save
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"save_document","arguments":{}}

save_document_as

Save the document to a new file and make it the document’s file (PSD/PSB/TIFF keep layers). Never overwrites unless overwrite: true.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ],
      "default": "psd"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "quality": {
      "type": "integer",
      "minimum": 0,
      "maximum": 12,
      "description": "JPEG quality 0-12"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"save_document_as","arguments":{"path":"designs/example.png"}}

get_document_info

Size, resolution, color mode, bit depth, path, saved state and layer count.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_document_info","arguments":{}}

get_open_documents

List all open documents.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.list
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"get_open_documents","arguments":{}}

get_active_document

Info for the active document.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"get_active_document","arguments":{}}

set_active_document

Bring a document to the front.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.activate
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "required": [
    "doc"
  ],
  "additionalProperties": false
}

Example: {"name":"set_active_document","arguments":{"doc":{}}}

resize_document

Image Size: resample the whole document. Give width and/or height (aspect kept if one is omitted) or percent.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.resizeImage
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "percent": {
      "type": "number",
      "minimum": 1,
      "maximum": 10000
    },
    "resample": {
      "type": "string",
      "enum": [
        "bicubicAutomatic",
        "bicubic",
        "bicubicSharper",
        "bicubicSmoother",
        "bilinear",
        "nearestNeighbor",
        "preserveDetails",
        "none"
      ],
      "default": "bicubicAutomatic"
    }
  },
  "additionalProperties": false
}

Example: {"name":"resize_document","arguments":{}}

resize_canvas

Canvas Size: change the canvas without scaling pixels.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.resizeCanvas
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "anchor": {
      "type": "string",
      "enum": [
        "topLeft",
        "top",
        "topRight",
        "left",
        "center",
        "right",
        "bottomLeft",
        "bottom",
        "bottomRight"
      ],
      "default": "center"
    }
  },
  "required": [
    "width",
    "height"
  ],
  "additionalProperties": false
}

Example: {"name":"resize_canvas","arguments":{"width":1,"height":1}}

change_resolution

Change ppi. resample: ‘none’ keeps pixel dimensions (print size changes).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.resizeImage
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "resolution": {
      "type": "number",
      "minimum": 1,
      "maximum": 10000
    },
    "resample": {
      "type": "string",
      "enum": [
        "bicubicAutomatic",
        "bicubic",
        "bicubicSharper",
        "bicubicSmoother",
        "bilinear",
        "nearestNeighbor",
        "preserveDetails",
        "none"
      ],
      "default": "none"
    }
  },
  "required": [
    "resolution"
  ],
  "additionalProperties": false
}

Example: {"name":"change_resolution","arguments":{"resolution":1}}

change_color_mode

Convert color mode. Converting can flatten adjustment layers or change colors; requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): doc.mode
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "mode": {
      "type": "string",
      "enum": [
        "rgb",
        "cmyk",
        "grayscale",
        "lab",
        "bitmap",
        "indexed"
      ]
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "required": [
    "mode"
  ],
  "additionalProperties": false
}

Example: {"name":"change_color_mode","arguments":{"mode":"rgb"}}

change_bit_depth

Convert to 8, 16 or 32 bits per channel.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.bitDepth
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "depth": {
      "type": "number",
      "enum": [
        8,
        16,
        32
      ]
    }
  },
  "required": [
    "depth"
  ],
  "additionalProperties": false
}

Example: {"name":"change_bit_depth","arguments":{"depth":8}}

flatten_document

Flatten all layers into Background. Destructive: requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): doc.flatten
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"flatten_document","arguments":{}}

duplicate_document

Duplicate the document (optionally merged).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.duplicate
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "mergeLayers": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"duplicate_document","arguments":{}}

export_document

Export a flattened copy in any supported format, optionally resized (the open document is not changed).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ]
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "JPEG 0-12, WebP 0-100"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    }
  },
  "required": [
    "path",
    "format"
  ],
  "additionalProperties": false
}

Example: {"name":"export_document","arguments":{"path":"designs/example.png","format":"psd"}}

2. Layer management

get_layers

Layer tree top-to-bottom: id, name, kind, visibility, opacity, blend mode, lock, bounds, masks, text summary.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): layer.list
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "includeHidden": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_layers","arguments":{}}

get_layer_info

Full info for one layer (text, effects, mask state).

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): layer.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_layer_info","arguments":{}}

create_layer

Create an empty pixel layer or a group; optionally fill it with a color.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.create, layer.fill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "kind": {
      "type": "string",
      "enum": [
        "pixel",
        "group"
      ],
      "default": "pixel"
    },
    "fill": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_layer","arguments":{}}

delete_layer

Delete layer(s). Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): layer.delete
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "layers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
      },
      "minItems": 1,
      "maxItems": 500
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"delete_layer","arguments":{}}

duplicate_layer

Duplicate a layer (above the original).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    }
  },
  "additionalProperties": false
}

Example: {"name":"duplicate_layer","arguments":{}}

rename_layer

Rename a layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.rename
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

Example: {"name":"rename_layer","arguments":{"name":"Example"}}

move_layer

Move a layer’s pixels: relative (dx, dy) or so its bounds’ top-left lands at (x, y).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.translate
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "dx": {
      "type": "number"
    },
    "dy": {
      "type": "number"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    }
  },
  "additionalProperties": false
}

Example: {"name":"move_layer","arguments":{}}

align_layers

Align layers (or groups) by an edge or center: to the canvas, to the bounding box of the layers themselves (default for 2+ layers), or to a reference layer. Moves only; sizes and order are untouched.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.list, doc.info, layer.translateMany
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
      },
      "minItems": 1,
      "maxItems": 500
    },
    "align": {
      "type": "string",
      "enum": [
        "left",
        "centerHorizontal",
        "right",
        "top",
        "centerVertical",
        "bottom"
      ]
    },
    "to": {
      "type": "string",
      "enum": [
        "canvas",
        "layers",
        "reference"
      ],
      "description": "Default: canvas for one layer, layers (their combined bounds) for several"
    },
    "reference": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Key layer to align to (with to: reference); it does not move"
    },
    "margin": {
      "type": "number",
      "minimum": 0,
      "default": 0,
      "description": "Inset from the target edge (edge alignments only)"
    }
  },
  "required": [
    "layers",
    "align"
  ],
  "additionalProperties": false
}

Example: {"name":"align_layers","arguments":{"layers":[],"align":"left"}}

distribute_layers

Space layers evenly along an axis (keeping their order on it): equal gaps or equal center distances between the outermost layers, or a fixed gap starting from the first layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.list, layer.translateMany
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
      },
      "minItems": 2,
      "maxItems": 500
    },
    "axis": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical"
      ]
    },
    "by": {
      "type": "string",
      "enum": [
        "gaps",
        "centers"
      ],
      "default": "gaps"
    },
    "spacing": {
      "type": "number",
      "minimum": 0,
      "description": "Fixed gap in px between neighbours; the first layer stays put"
    }
  },
  "required": [
    "layers",
    "axis"
  ],
  "additionalProperties": false
}

Example: {"name":"distribute_layers","arguments":{"layers":[],"axis":"horizontal"}}

reorder_layers

Change stacking order: top, bottom, up, down, or above/below another layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.arrange
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "position": {
      "type": "string",
      "enum": [
        "top",
        "bottom",
        "up",
        "down",
        "above",
        "below"
      ]
    },
    "relativeTo": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "required": [
    "position"
  ],
  "additionalProperties": false
}

Example: {"name":"reorder_layers","arguments":{"position":"top"}}

merge_layers

Merge the given layers into one. Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): layer.merge
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
      },
      "minItems": 2,
      "maxItems": 500
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "required": [
    "layers"
  ],
  "additionalProperties": false
}

Example: {"name":"merge_layers","arguments":{"layers":[]}}

merge_visible_layers

Merge all visible layers. Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): layer.mergeVisible
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"merge_visible_layers","arguments":{}}

group_layers

Put layers in a new group.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.group
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
      },
      "minItems": 1,
      "maxItems": 500
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    }
  },
  "required": [
    "layers"
  ],
  "additionalProperties": false
}

Example: {"name":"group_layers","arguments":{"layers":[]}}

ungroup_layers

Ungroup a group (children stay).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.ungroup
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"ungroup_layers","arguments":{}}

hide_layer

Hide a layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"hide_layer","arguments":{}}

show_layer

Show a layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"show_layer","arguments":{}}

lock_layer

Lock a layer (all, position, pixels or transparency).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "lock": {
      "type": "string",
      "enum": [
        "all",
        "position",
        "pixels",
        "transparency"
      ],
      "default": "all"
    }
  },
  "additionalProperties": false
}

Example: {"name":"lock_layer","arguments":{}}

unlock_layer

Remove all locks from a layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"unlock_layer","arguments":{}}

set_layer_opacity

Set layer opacity (0-100).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "opacity"
  ],
  "additionalProperties": false
}

Example: {"name":"set_layer_opacity","arguments":{"opacity":100}}

set_layer_fill_opacity

Set fill opacity (0-100); layer effects stay fully visible.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "fillOpacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "fillOpacity"
  ],
  "additionalProperties": false
}

Example: {"name":"set_layer_fill_opacity","arguments":{"fillOpacity":100}}

set_blend_mode

Set a layer’s blend mode.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    }
  },
  "required": [
    "blendMode"
  ],
  "additionalProperties": false
}

Example: {"name":"set_blend_mode","arguments":{"blendMode":"normal"}}

Link layers so they move together.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.link
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
      },
      "minItems": 2,
      "maxItems": 500
    }
  },
  "required": [
    "layers"
  ],
  "additionalProperties": false
}

Example: {"name":"link_layers","arguments":{"layers":[]}}

rasterize_layer

Rasterize a text/shape/smart-object layer (loses editability). Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): layer.rasterize
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"rasterize_layer","arguments":{}}

convert_to_smart_object

Convert a layer to a smart object (enables smart filters, lossless transforms).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.smartObject
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"convert_to_smart_object","arguments":{}}

get_layer_bounds

Pixel bounds of a layer (left, top, right, bottom, width, height).

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): layer.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_layer_bounds","arguments":{}}

3. Text & typography

add_text

Create a live (editable) text layer. (x, y) is the text anchor: baseline of the first line; for center/right alignment x is the center/right edge. Give box {width,height} for paragraph text.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "font": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "PostScript font name, e.g. ArialMT, Arial-BoldMT, TimesNewRomanPSMT, MyriadPro-Regular. Missing fonts are reported, never silently assumed.",
      "default": "ArialMT"
    },
    "size": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 5000,
      "default": 48,
      "description": "Size in px"
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#000000"
    },
    "alignment": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right",
        "justify"
      ],
      "default": "left"
    },
    "tracking": {
      "type": "number",
      "minimum": -1000,
      "maximum": 10000,
      "default": 0
    },
    "leading": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 5000
    },
    "box": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "minimum": 1
        },
        "height": {
          "type": "number",
          "minimum": 1
        }
      },
      "required": [
        "width",
        "height"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "text",
    "x",
    "y"
  ],
  "additionalProperties": false
}

Example: {"name":"add_text","arguments":{"text":"Example","x":100,"y":100}}

edit_text

Replace a text layer’s contents.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Example: {"name":"edit_text","arguments":{"text":"Example"}}

delete_text

Delete a text layer. Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): layer.info, layer.delete
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"delete_text","arguments":{}}

replace_text

Find & replace inside one text layer, or all text layers when layer is omitted.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "find": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "replace": {
      "type": "string",
      "maxLength": 1000
    }
  },
  "required": [
    "find",
    "replace"
  ],
  "additionalProperties": false
}

Example: {"name":"replace_text","arguments":{"find":"Example","replace":"Example"}}

set_font

Set the font (PostScript name) of a text layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "font": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "PostScript font name, e.g. ArialMT, Arial-BoldMT, TimesNewRomanPSMT, MyriadPro-Regular. Missing fonts are reported, never silently assumed."
    }
  },
  "required": [
    "font"
  ],
  "additionalProperties": false
}

Example: {"name":"set_font","arguments":{"font":"Example"}}

set_font_size

Set text size in px.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "size": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 5000
    }
  },
  "required": [
    "size"
  ],
  "additionalProperties": false
}

Example: {"name":"set_font_size","arguments":{"size":0.1}}

set_font_color

Set text color.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    }
  },
  "required": [
    "color"
  ],
  "additionalProperties": false
}

Example: {"name":"set_font_color","arguments":{"color":"#1A2B3C"}}

set_font_style

Faux bold/italic, underline, all caps, small caps, strikethrough. Prefer a real bold/italic font via set_font.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "fauxBold": {
      "type": "boolean"
    },
    "fauxItalic": {
      "type": "boolean"
    },
    "underline": {
      "type": "boolean"
    },
    "strikethrough": {
      "type": "boolean"
    },
    "capitalization": {
      "type": "string",
      "enum": [
        "normal",
        "allCaps",
        "smallCaps"
      ]
    }
  },
  "additionalProperties": false
}

Example: {"name":"set_font_style","arguments":{}}

set_text_alignment

Paragraph alignment.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "alignment": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right",
        "justify"
      ]
    }
  },
  "required": [
    "alignment"
  ],
  "additionalProperties": false
}

Example: {"name":"set_text_alignment","arguments":{"alignment":"left"}}

set_character_spacing

Tracking in 1/1000 em.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "tracking": {
      "type": "number",
      "minimum": -1000,
      "maximum": 10000
    }
  },
  "required": [
    "tracking"
  ],
  "additionalProperties": false
}

Example: {"name":"set_character_spacing","arguments":{"tracking":100}}

set_line_spacing

Leading in px, or auto.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): text.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "leading": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0.1,
          "maximum": 5000
        },
        {
          "type": "string",
          "const": "auto"
        }
      ]
    }
  },
  "required": [
    "leading"
  ],
  "additionalProperties": false
}

Example: {"name":"set_line_spacing","arguments":{"leading":{}}}

transform_text

Scale / rotate a text layer while keeping it editable.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.transform
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "scale": {
      "type": "number",
      "minimum": 1,
      "maximum": 5000,
      "description": "percent"
    },
    "rotate": {
      "type": "number",
      "minimum": -360,
      "maximum": 360
    }
  },
  "additionalProperties": false
}

Example: {"name":"transform_text","arguments":{}}

add_text_effect

Add layer styles (drop shadow, glow, stroke, bevel, gradient/color overlay) to any layer; merges with existing effects.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "effects": {
      "type": "object",
      "properties": {
        "dropShadow": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C",
              "default": "#000000"
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 60
            },
            "angle": {
              "type": "number",
              "minimum": -360,
              "maximum": 360,
              "default": 120
            },
            "distance": {
              "type": "number",
              "minimum": 0,
              "maximum": 30000,
              "default": 10
            },
            "size": {
              "type": "number",
              "minimum": 0,
              "maximum": 250,
              "default": 15
            },
            "spread": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            },
            "blendMode": {
              "type": "string",
              "enum": [
                "normal",
                "dissolve",
                "darken",
                "multiply",
                "colorBurn",
                "linearBurn",
                "darkerColor",
                "lighten",
                "screen",
                "colorDodge",
                "linearDodge",
                "lighterColor",
                "overlay",
                "softLight",
                "hardLight",
                "vividLight",
                "linearLight",
                "pinLight",
                "hardMix",
                "difference",
                "exclusion",
                "subtract",
                "divide",
                "hue",
                "saturation",
                "color",
                "luminosity"
              ],
              "default": "multiply"
            }
          },
          "additionalProperties": false
        },
        "innerShadow": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C",
              "default": "#000000"
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 60
            },
            "angle": {
              "type": "number",
              "minimum": -360,
              "maximum": 360,
              "default": 120
            },
            "distance": {
              "type": "number",
              "minimum": 0,
              "maximum": 30000,
              "default": 10
            },
            "size": {
              "type": "number",
              "minimum": 0,
              "maximum": 250,
              "default": 15
            },
            "spread": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            },
            "blendMode": {
              "type": "string",
              "enum": [
                "normal",
                "dissolve",
                "darken",
                "multiply",
                "colorBurn",
                "linearBurn",
                "darkerColor",
                "lighten",
                "screen",
                "colorDodge",
                "linearDodge",
                "lighterColor",
                "overlay",
                "softLight",
                "hardLight",
                "vividLight",
                "linearLight",
                "pinLight",
                "hardMix",
                "difference",
                "exclusion",
                "subtract",
                "divide",
                "hue",
                "saturation",
                "color",
                "luminosity"
              ],
              "default": "multiply"
            }
          },
          "additionalProperties": false
        },
        "outerGlow": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C",
              "default": "#FFE9A8"
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 60
            },
            "size": {
              "type": "number",
              "minimum": 0,
              "maximum": 250,
              "default": 20
            },
            "spread": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            },
            "blendMode": {
              "type": "string",
              "enum": [
                "normal",
                "dissolve",
                "darken",
                "multiply",
                "colorBurn",
                "linearBurn",
                "darkerColor",
                "lighten",
                "screen",
                "colorDodge",
                "linearDodge",
                "lighterColor",
                "overlay",
                "softLight",
                "hardLight",
                "vividLight",
                "linearLight",
                "pinLight",
                "hardMix",
                "difference",
                "exclusion",
                "subtract",
                "divide",
                "hue",
                "saturation",
                "color",
                "luminosity"
              ],
              "default": "screen"
            }
          },
          "additionalProperties": false
        },
        "innerGlow": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C",
              "default": "#FFE9A8"
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 60
            },
            "size": {
              "type": "number",
              "minimum": 0,
              "maximum": 250,
              "default": 20
            },
            "spread": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            },
            "blendMode": {
              "type": "string",
              "enum": [
                "normal",
                "dissolve",
                "darken",
                "multiply",
                "colorBurn",
                "linearBurn",
                "darkerColor",
                "lighten",
                "screen",
                "colorDodge",
                "linearDodge",
                "lighterColor",
                "overlay",
                "softLight",
                "hardLight",
                "vividLight",
                "linearLight",
                "pinLight",
                "hardMix",
                "difference",
                "exclusion",
                "subtract",
                "divide",
                "hue",
                "saturation",
                "color",
                "luminosity"
              ],
              "default": "screen"
            }
          },
          "additionalProperties": false
        },
        "stroke": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C",
              "default": "#000000"
            },
            "size": {
              "type": "number",
              "minimum": 1,
              "maximum": 250,
              "default": 3
            },
            "position": {
              "type": "string",
              "enum": [
                "outside",
                "inside",
                "center"
              ],
              "default": "outside"
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 100
            }
          },
          "additionalProperties": false
        },
        "bevel": {
          "type": "object",
          "properties": {
            "style": {
              "type": "string",
              "enum": [
                "innerBevel",
                "outerBevel",
                "emboss",
                "pillowEmboss"
              ],
              "default": "innerBevel"
            },
            "depth": {
              "type": "number",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            },
            "size": {
              "type": "number",
              "minimum": 0,
              "maximum": 250,
              "default": 5
            },
            "soften": {
              "type": "number",
              "minimum": 0,
              "maximum": 16,
              "default": 0
            },
            "angle": {
              "type": "number",
              "default": 120
            },
            "altitude": {
              "type": "number",
              "minimum": 0,
              "maximum": 90,
              "default": 30
            },
            "direction": {
              "type": "string",
              "enum": [
                "up",
                "down"
              ],
              "default": "up"
            }
          },
          "additionalProperties": false
        },
        "gradientOverlay": {
          "type": "object",
          "properties": {
            "gradient": {
              "type": "object",
              "properties": {
                "stops": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "color": {
                        "type": "string",
                        "description": "Hex color, e.g. #1A2B3C"
                      },
                      "location": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "opacity": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100,
                        "default": 100,
                        "description": "Stop opacity (transparency stop at the same location)"
                      }
                    },
                    "required": [
                      "color",
                      "location"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 2,
                  "maxItems": 16
                },
                "angle": {
                  "type": "number",
                  "minimum": -360,
                  "maximum": 360,
                  "default": 90
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "linear",
                    "radial",
                    "angle",
                    "reflected",
                    "diamond"
                  ],
                  "default": "linear"
                }
              },
              "required": [
                "stops"
              ],
              "additionalProperties": false
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 100
            },
            "blendMode": {
              "type": "string",
              "enum": [
                "normal",
                "dissolve",
                "darken",
                "multiply",
                "colorBurn",
                "linearBurn",
                "darkerColor",
                "lighten",
                "screen",
                "colorDodge",
                "linearDodge",
                "lighterColor",
                "overlay",
                "softLight",
                "hardLight",
                "vividLight",
                "linearLight",
                "pinLight",
                "hardMix",
                "difference",
                "exclusion",
                "subtract",
                "divide",
                "hue",
                "saturation",
                "color",
                "luminosity"
              ],
              "default": "normal"
            }
          },
          "required": [
            "gradient"
          ],
          "additionalProperties": false
        },
        "colorOverlay": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C"
            },
            "opacity": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 100
            },
            "blendMode": {
              "type": "string",
              "enum": [
                "normal",
                "dissolve",
                "darken",
                "multiply",
                "colorBurn",
                "linearBurn",
                "darkerColor",
                "lighten",
                "screen",
                "colorDodge",
                "linearDodge",
                "lighterColor",
                "overlay",
                "softLight",
                "hardLight",
                "vividLight",
                "linearLight",
                "pinLight",
                "hardMix",
                "difference",
                "exclusion",
                "subtract",
                "divide",
                "hue",
                "saturation",
                "color",
                "luminosity"
              ],
              "default": "normal"
            }
          },
          "required": [
            "color"
          ],
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "effects"
  ],
  "additionalProperties": false
}

Example: {"name":"add_text_effect","arguments":{"effects":{}}}

create_text_outline

Outline text with a Stroke layer style (stays editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "stroke": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#000000"
        },
        "size": {
          "type": "number",
          "minimum": 1,
          "maximum": 250,
          "default": 3
        },
        "position": {
          "type": "string",
          "enum": [
            "outside",
            "inside",
            "center"
          ],
          "default": "outside"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 100
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_text_outline","arguments":{}}

create_text_shadow

Drop shadow on text.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "shadow": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#000000"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 60
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 120
        },
        "distance": {
          "type": "number",
          "minimum": 0,
          "maximum": 30000,
          "default": 10
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 15
        },
        "spread": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 0
        },
        "blendMode": {
          "type": "string",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "colorBurn",
            "linearBurn",
            "darkerColor",
            "lighten",
            "screen",
            "colorDodge",
            "linearDodge",
            "lighterColor",
            "overlay",
            "softLight",
            "hardLight",
            "vividLight",
            "linearLight",
            "pinLight",
            "hardMix",
            "difference",
            "exclusion",
            "subtract",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ],
          "default": "multiply"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_text_shadow","arguments":{}}

create_gradient_text

Fill text with a gradient (Gradient Overlay style).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "gradient": {
      "type": "object",
      "properties": {
        "stops": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "description": "Hex color, e.g. #1A2B3C"
              },
              "location": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "opacity": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 100,
                "description": "Stop opacity (transparency stop at the same location)"
              }
            },
            "required": [
              "color",
              "location"
            ],
            "additionalProperties": false
          },
          "minItems": 2,
          "maxItems": 16
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 90
        },
        "type": {
          "type": "string",
          "enum": [
            "linear",
            "radial",
            "angle",
            "reflected",
            "diamond"
          ],
          "default": "linear"
        }
      },
      "required": [
        "stops"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "gradient"
  ],
  "additionalProperties": false
}

Example: {"name":"create_gradient_text","arguments":{"gradient":{}}}

create_text_glow

Outer glow around text.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "glow": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#FFE9A8"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 60
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 20
        },
        "spread": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 0
        },
        "blendMode": {
          "type": "string",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "colorBurn",
            "linearBurn",
            "darkerColor",
            "lighten",
            "screen",
            "colorDodge",
            "linearDodge",
            "lighterColor",
            "overlay",
            "softLight",
            "hardLight",
            "vividLight",
            "linearLight",
            "pinLight",
            "hardMix",
            "difference",
            "exclusion",
            "subtract",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ],
          "default": "screen"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_text_glow","arguments":{}}

convert_text_to_shape

Convert text to a vector shape layer (no longer editable as text). Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): text.toShape
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"convert_text_to_shape","arguments":{}}

create_typography_design

Typographic composition on a new canvas: headline (+ optional subhead) with style-driven fonts, colors and effects.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, text.create, layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 1920
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 1080
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "bevel": {
      "type": "object",
      "properties": {
        "style": {
          "type": "string",
          "enum": [
            "innerBevel",
            "outerBevel",
            "emboss",
            "pillowEmboss"
          ],
          "default": "innerBevel"
        },
        "depth": {
          "type": "number",
          "minimum": 1,
          "maximum": 1000,
          "default": 100
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 5
        },
        "soften": {
          "type": "number",
          "minimum": 0,
          "maximum": 16,
          "default": 0
        },
        "angle": {
          "type": "number",
          "default": 120
        },
        "altitude": {
          "type": "number",
          "minimum": 0,
          "maximum": 90,
          "default": 30
        },
        "direction": {
          "type": "string",
          "enum": [
            "up",
            "down"
          ],
          "default": "up"
        }
      },
      "additionalProperties": false
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_typography_design","arguments":{"headline":"Example"}}

4. Shapes & graphic design

create_rectangle

Vector rectangle shape layer (optional corner radius, fill, stroke).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.rect
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "fill": {
      "type": "string",
      "description": "Fill color (default #000000)"
    },
    "stroke": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C"
        },
        "width": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 250,
          "default": 2
        },
        "position": {
          "type": "string",
          "enum": [
            "outside",
            "inside",
            "center"
          ],
          "default": "outside"
        }
      },
      "required": [
        "color"
      ],
      "additionalProperties": false
    },
    "radius": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000,
      "default": 0
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"create_rectangle","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

create_ellipse

Vector ellipse shape layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.ellipse
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "fill": {
      "type": "string",
      "description": "Fill color (default #000000)"
    },
    "stroke": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C"
        },
        "width": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 250,
          "default": 2
        },
        "position": {
          "type": "string",
          "enum": [
            "outside",
            "inside",
            "center"
          ],
          "default": "outside"
        }
      },
      "required": [
        "color"
      ],
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"create_ellipse","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

create_polygon

Vector polygon shape layer from points, or a regular polygon from center/radius/sides.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.polygon
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "additionalProperties": false
      },
      "minItems": 3,
      "maxItems": 1000
    },
    "center": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": false
    },
    "radius": {
      "type": "number",
      "minimum": 1
    },
    "sides": {
      "type": "integer",
      "minimum": 3,
      "maximum": 100,
      "default": 6
    },
    "fill": {
      "type": "string",
      "description": "Fill color (default #000000)"
    },
    "stroke": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C"
        },
        "width": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 250,
          "default": 2
        },
        "position": {
          "type": "string",
          "enum": [
            "outside",
            "inside",
            "center"
          ],
          "default": "outside"
        }
      },
      "required": [
        "color"
      ],
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_polygon","arguments":{}}

create_line

Straight line as a thin vector shape layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.polygon
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "from": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": false
    },
    "to": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": false
    },
    "width": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 1000,
      "default": 4
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#000000"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "additionalProperties": false
}

Example: {"name":"create_line","arguments":{"from":{},"to":{}}}

create_custom_shape

Vector custom shape: star, burst, heart, arrow, triangle, diamond, hexagon, octagon, speech_bubble.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.polygon
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "shape": {
      "type": "string",
      "enum": [
        "star",
        "burst",
        "heart",
        "arrow",
        "triangle",
        "diamond",
        "hexagon",
        "octagon",
        "speech_bubble"
      ]
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "points": {
      "type": "integer",
      "minimum": 3,
      "maximum": 64
    },
    "innerRatio": {
      "type": "number",
      "minimum": 0.05,
      "maximum": 0.95
    },
    "fill": {
      "type": "string",
      "description": "Fill color (default #000000)"
    },
    "stroke": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C"
        },
        "width": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 250,
          "default": 2
        },
        "position": {
          "type": "string",
          "enum": [
            "outside",
            "inside",
            "center"
          ],
          "default": "outside"
        }
      },
      "required": [
        "color"
      ],
      "additionalProperties": false
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "required": [
    "shape",
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"create_custom_shape","arguments":{"shape":"star","bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

edit_shape

Change a shape/fill layer’s fill color, stroke or opacity.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "fill": {
      "type": "string",
      "description": "Fill color (default #000000)"
    },
    "stroke": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C"
            },
            "width": {
              "type": "number",
              "minimum": 0.1,
              "maximum": 250,
              "default": 2
            },
            "position": {
              "type": "string",
              "enum": [
                "outside",
                "inside",
                "center"
              ],
              "default": "outside"
            }
          },
          "required": [
            "color"
          ],
          "additionalProperties": false
        },
        {
          "type": "string",
          "const": "none"
        }
      ]
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    }
  },
  "additionalProperties": false
}

Example: {"name":"edit_shape","arguments":{}}

transform_shape

Scale, rotate, flip or move a layer (shape layers stay vector).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.transform
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "scaleX": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10000
    },
    "scaleY": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10000
    },
    "angle": {
      "type": "number",
      "minimum": -360,
      "maximum": 360
    },
    "dx": {
      "type": "number"
    },
    "dy": {
      "type": "number"
    },
    "flip": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical"
      ]
    }
  },
  "additionalProperties": false
}

Example: {"name":"transform_shape","arguments":{}}

set_shape_fill

Set a shape layer’s fill color.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "fill": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    }
  },
  "required": [
    "fill"
  ],
  "additionalProperties": false
}

Example: {"name":"set_shape_fill","arguments":{"fill":"#1A2B3C"}}

set_shape_stroke

Set or remove a shape layer’s stroke.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): shape.edit
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "stroke": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "description": "Hex color, e.g. #1A2B3C"
            },
            "width": {
              "type": "number",
              "minimum": 0.1,
              "maximum": 250,
              "default": 2
            },
            "position": {
              "type": "string",
              "enum": [
                "outside",
                "inside",
                "center"
              ],
              "default": "outside"
            }
          },
          "required": [
            "color"
          ],
          "additionalProperties": false
        },
        {
          "type": "string",
          "const": "none"
        }
      ]
    }
  },
  "required": [
    "stroke"
  ],
  "additionalProperties": false
}

Example: {"name":"set_shape_stroke","arguments":{"stroke":{}}}

create_gradient

Gradient fill layer (editable). Covers the canvas, or only bounds (masked).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): fill.gradient
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "gradient": {
      "type": "object",
      "properties": {
        "stops": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "description": "Hex color, e.g. #1A2B3C"
              },
              "location": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "opacity": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 100,
                "description": "Stop opacity (transparency stop at the same location)"
              }
            },
            "required": [
              "color",
              "location"
            ],
            "additionalProperties": false
          },
          "minItems": 2,
          "maxItems": 16
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 90
        },
        "type": {
          "type": "string",
          "enum": [
            "linear",
            "radial",
            "angle",
            "reflected",
            "diamond"
          ],
          "default": "linear"
        }
      },
      "required": [
        "stops"
      ],
      "additionalProperties": false
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string"
    }
  },
  "required": [
    "gradient"
  ],
  "additionalProperties": false
}

Example: {"name":"create_gradient","arguments":{"gradient":{}}}

create_pattern

Procedural pattern (dots, grid, stripes, checker, diagonal) drawn as one pixel layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.create, select.rect, select.ellipse, edit.fillSelection, select.none
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "kind": {
      "type": "string",
      "enum": [
        "dots",
        "grid",
        "stripes",
        "checker",
        "diagonal"
      ],
      "default": "dots"
    },
    "spacing": {
      "type": "number",
      "minimum": 4,
      "maximum": 2000,
      "default": 40
    },
    "size": {
      "type": "number",
      "minimum": 1,
      "maximum": 2000,
      "default": 8
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#000000"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 30
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name",
      "default": "Pattern"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_pattern","arguments":{}}

create_banner

Wide web/hero banner. Builds fully editable layers (fill layers, vector shapes, live text, smart-object image) and returns every step.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, shape.rect, shape.ellipse, text.create, image.place, layer.effects, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 1000
    },
    "cta": {
      "type": "string",
      "maxLength": 60
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Hex color, e.g. #1A2B3C"
      },
      "maxItems": 2,
      "description": "Override primary/accent colors"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Optional hero image inside an allowed directory"
    },
    "removeBackground": {
      "type": "boolean",
      "default": false
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false,
      "description": "Draw into the active document instead of creating one"
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "default": "web_banner"
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_banner","arguments":{"headline":"Example"}}

create_social_media_design

Social post sized for a platform preset. Builds fully editable layers (fill layers, vector shapes, live text, smart-object image) and returns every step.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, shape.rect, shape.ellipse, text.create, image.place, layer.effects, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 1000
    },
    "cta": {
      "type": "string",
      "maxLength": 60
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Hex color, e.g. #1A2B3C"
      },
      "maxItems": 2,
      "description": "Override primary/accent colors"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Optional hero image inside an allowed directory"
    },
    "removeBackground": {
      "type": "boolean",
      "default": false
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false,
      "description": "Draw into the active document instead of creating one"
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "default": "instagram_post"
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "description": "Alias of preset"
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_social_media_design","arguments":{"headline":"Example"}}

create_thumbnail

High-contrast YouTube-style thumbnail (1280x720). Builds fully editable layers (fill layers, vector shapes, live text, smart-object image) and returns every step.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, shape.rect, shape.ellipse, text.create, image.place, layer.effects, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 1000
    },
    "cta": {
      "type": "string",
      "maxLength": 60
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Hex color, e.g. #1A2B3C"
      },
      "maxItems": 2,
      "description": "Override primary/accent colors"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Optional hero image inside an allowed directory"
    },
    "removeBackground": {
      "type": "boolean",
      "default": false
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false,
      "description": "Draw into the active document instead of creating one"
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "default": "youtube_thumbnail"
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_thumbnail","arguments":{"headline":"Example"}}

create_advertisement

Advertisement with product image, headline and CTA. Builds fully editable layers (fill layers, vector shapes, live text, smart-object image) and returns every step.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, shape.rect, shape.ellipse, text.create, image.place, layer.effects, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 1000
    },
    "cta": {
      "type": "string",
      "maxLength": 60
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Hex color, e.g. #1A2B3C"
      },
      "maxItems": 2,
      "description": "Override primary/accent colors"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Optional hero image inside an allowed directory"
    },
    "removeBackground": {
      "type": "boolean",
      "default": false
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false,
      "description": "Draw into the active document instead of creating one"
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "default": "instagram_post"
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_advertisement","arguments":{"headline":"Example"}}

create_magazine_cover

Magazine cover with masthead band and cover lines. Builds fully editable layers (fill layers, vector shapes, live text, smart-object image) and returns every step.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, shape.rect, shape.ellipse, text.create, image.place, layer.effects, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 1000
    },
    "cta": {
      "type": "string",
      "maxLength": 60
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Hex color, e.g. #1A2B3C"
      },
      "maxItems": 2,
      "description": "Override primary/accent colors"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Optional hero image inside an allowed directory"
    },
    "removeBackground": {
      "type": "boolean",
      "default": false
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false,
      "description": "Draw into the active document instead of creating one"
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "default": "magazine_cover"
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_magazine_cover","arguments":{"headline":"Example"}}

create_album_cover

Square album cover art layout. Builds fully editable layers (fill layers, vector shapes, live text, smart-object image) and returns every step.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, shape.rect, shape.ellipse, text.create, image.place, layer.effects, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "subhead": {
      "type": "string",
      "maxLength": 300
    },
    "body": {
      "type": "string",
      "maxLength": 1000
    },
    "cta": {
      "type": "string",
      "maxLength": 60
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "bold"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Hex color, e.g. #1A2B3C"
      },
      "maxItems": 2,
      "description": "Override primary/accent colors"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Optional hero image inside an allowed directory"
    },
    "removeBackground": {
      "type": "boolean",
      "default": false
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 30000
    },
    "useActiveDocument": {
      "type": "boolean",
      "default": false,
      "description": "Draw into the active document instead of creating one"
    },
    "preset": {
      "type": "string",
      "enum": [
        "instagram_post",
        "instagram_portrait",
        "instagram_story",
        "facebook_post",
        "facebook_cover",
        "twitter_post",
        "twitter_header",
        "linkedin_post",
        "linkedin_banner",
        "pinterest_pin",
        "youtube_thumbnail",
        "youtube_banner",
        "web_banner",
        "leaderboard",
        "medium_rectangle",
        "hd",
        "4k",
        "poster_a3",
        "poster_18x24",
        "flyer_letter",
        "flyer_a4",
        "magazine_cover",
        "album_cover",
        "ecommerce"
      ],
      "default": "album_cover"
    }
  },
  "required": [
    "headline"
  ],
  "additionalProperties": false
}

Example: {"name":"create_album_cover","arguments":{"headline":"Example"}}

5. Image operations

import_image

Open an image as a new document, from a local path or an internet url (downloaded first).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open
Input schema
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 4096,
      "description": "http(s) URL of a PNG, JPEG, GIF, WebP, BMP, TIFF, AVIF, HEIC or SVG image (downloaded into the asset library first)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"import_image","arguments":{}}

place_image

Place an image into the document as an embedded smart object, optionally fitted into a box (x, y, width, height). Source is a local path or an internet url (downloaded into the asset library first).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): image.place
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 4096,
      "description": "http(s) URL of a PNG, JPEG, GIF, WebP, BMP, TIFF, AVIF, HEIC or SVG image (downloaded into the asset library first)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    },
    "width": {
      "type": "number",
      "minimum": 1
    },
    "height": {
      "type": "number",
      "minimum": 1
    },
    "fit": {
      "type": "string",
      "enum": [
        "contain",
        "cover",
        "stretch",
        "none"
      ],
      "default": "contain"
    },
    "linked": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"place_image","arguments":{}}

crop_image

Crop the canvas to bounds (pixels outside are deleted unless layers extend beyond). Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): doc.crop
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"crop_image","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

rotate_image

Rotate the whole canvas (degrees, clockwise).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.rotate
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "angle": {
      "type": "number",
      "minimum": -360,
      "maximum": 360
    }
  },
  "required": [
    "angle"
  ],
  "additionalProperties": false
}

Example: {"name":"rotate_image","arguments":{"angle":100}}

flip_image

Flip the canvas, or one layer when target is ‘layer’.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.flip, layer.transform
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "direction": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical"
      ]
    },
    "target": {
      "type": "string",
      "enum": [
        "document",
        "layer"
      ],
      "default": "document"
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "required": [
    "direction"
  ],
  "additionalProperties": false
}

Example: {"name":"flip_image","arguments":{"direction":"horizontal"}}

resize_image

Resample the document (same as resize_document).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.resizeImage
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "width": {
      "type": "integer",
      "minimum": 1
    },
    "height": {
      "type": "integer",
      "minimum": 1
    },
    "percent": {
      "type": "number",
      "minimum": 1,
      "maximum": 10000
    }
  },
  "additionalProperties": false
}

Example: {"name":"resize_image","arguments":{}}

transform_image

Free transform a layer: scale (%), rotate, skew, move, flip. Smart objects keep full quality.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.transform
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "scaleX": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10000
    },
    "scaleY": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10000
    },
    "angle": {
      "type": "number",
      "minimum": -360,
      "maximum": 360
    },
    "skewX": {
      "type": "number",
      "minimum": -89,
      "maximum": 89
    },
    "skewY": {
      "type": "number",
      "minimum": -89,
      "maximum": 89
    },
    "dx": {
      "type": "number"
    },
    "dy": {
      "type": "number"
    },
    "flip": {
      "type": "string",
      "enum": [
        "horizontal",
        "vertical"
      ]
    },
    "anchor": {
      "type": "string",
      "enum": [
        "center",
        "topLeft",
        "bottom",
        "top"
      ],
      "default": "center"
    }
  },
  "additionalProperties": false
}

Example: {"name":"transform_image","arguments":{}}

duplicate_image

Duplicate the document.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.duplicate
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "name": {
      "type": "string",
      "maxLength": 255
    }
  },
  "additionalProperties": false
}

Example: {"name":"duplicate_image","arguments":{}}

replace_image

Replace the contents of a smart object layer with another file (keeps transforms, masks, filters).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.replaceContents
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"replace_image","arguments":{"path":"designs/example.png"}}

convert_image

Convert an image file to another format: opens it, saves a copy, closes it without changes.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open, doc.saveAs, doc.close
Input schema
{
  "type": "object",
  "properties": {
    "input": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "output": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ]
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    }
  },
  "required": [
    "input",
    "output",
    "format"
  ],
  "additionalProperties": false
}

Example: {"name":"convert_image","arguments":{"input":"designs/example.png","output":"designs/example.png","format":"psd"}}

export_image

Export the document as an image file (flattened copy). Same as export_document.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ],
      "default": "png"
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "width": {
      "type": "integer",
      "minimum": 1
    },
    "height": {
      "type": "integer",
      "minimum": 1
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_image","arguments":{"path":"designs/example.png"}}

get_image_dimensions

Pixel size of a file (header read, no Photoshop needed) or of the active document.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info
Input schema
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_image_dimensions","arguments":{}}

get_image_metadata

File metadata from the header: format, dimensions, bit depth, channels, color mode (PSD), size, modified time.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"get_image_metadata","arguments":{"path":"designs/example.png"}}

create_image_contact_sheet

Contact sheet: grid of thumbnails (smart objects) with file-name captions from a list of files or a folder.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, image.place, text.create
Input schema
{
  "type": "object",
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 400
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "columns": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 4
    },
    "cellSize": {
      "type": "integer",
      "minimum": 32,
      "maximum": 4000,
      "default": 400
    },
    "gap": {
      "type": "integer",
      "minimum": 0,
      "maximum": 500,
      "default": 20
    },
    "captions": {
      "type": "boolean",
      "default": true
    },
    "background": {
      "type": "string",
      "default": "#FFFFFF"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_image_contact_sheet","arguments":{}}

6. Selection & masking

select_all

Select the whole canvas.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.all
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"select_all","arguments":{}}

deselect

Remove the selection.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.none
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"deselect","arguments":{}}

invert_selection

Invert the selection.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.invert
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"invert_selection","arguments":{}}

select_subject

Photoshop Select Subject (built-in ML model) on the given/active layer.

  • Status: supported — Quality depends on the image; check get_selection_info / capture_preview.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.select, select.subject
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "sampleAllLayers": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"select_subject","arguments":{}}

select_object

Select the main object inside a rectangle: Select Subject intersected with the rectangle.

  • Status: partial — The interactive Object Selection tool is not scriptable; this approximates it with Select Subject ∩ bounds.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.subject, select.rect
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"select_object","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

select_sky

Photoshop Select > Sky (built-in ML model).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.sky
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"select_sky","arguments":{}}

select_color_range

Select > Color Range using a preset range (reds…magentas, highlights, midtones, shadows, skin tones).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.colorRange
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "preset": {
      "type": "string",
      "enum": [
        "reds",
        "yellows",
        "greens",
        "cyans",
        "blues",
        "magentas",
        "highlights",
        "midtones",
        "shadows",
        "skinTone"
      ]
    },
    "fuzziness": {
      "type": "number",
      "minimum": 0,
      "maximum": 200,
      "default": 40
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "add",
        "subtract",
        "intersect"
      ],
      "default": "new"
    }
  },
  "required": [
    "preset"
  ],
  "additionalProperties": false
}

Example: {"name":"select_color_range","arguments":{"preset":"reds"}}

select_rectangle

Rectangular selection (new/add/subtract/intersect), optional feather.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.rect
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "add",
        "subtract",
        "intersect"
      ],
      "default": "new"
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000,
      "default": 0
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"select_rectangle","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

select_ellipse

Elliptical selection.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.ellipse
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "add",
        "subtract",
        "intersect"
      ],
      "default": "new"
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000,
      "default": 0
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"select_ellipse","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

select_polygon

Polygonal lasso selection from points.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.polygon
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "additionalProperties": false
      },
      "minItems": 3,
      "maxItems": 2000
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "add",
        "subtract",
        "intersect"
      ],
      "default": "new"
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000,
      "default": 0
    }
  },
  "required": [
    "points"
  ],
  "additionalProperties": false
}

Example: {"name":"select_polygon","arguments":{"points":[]}}

select_layer_pixels

Load a layer’s transparency as a selection (Ctrl+click thumbnail).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.layerPixels
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "mode": {
      "type": "string",
      "enum": [
        "new",
        "add",
        "subtract",
        "intersect"
      ],
      "default": "new"
    }
  },
  "additionalProperties": false
}

Example: {"name":"select_layer_pixels","arguments":{}}

create_layer_mask

Add a layer mask: from the current selection, reveal all or hide all. Background layers are converted to normal layers first.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): mask.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "from": {
      "type": "string",
      "enum": [
        "selection",
        "revealAll",
        "hideAll"
      ],
      "default": "selection"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_layer_mask","arguments":{}}

create_vector_mask

Add a vector mask from a rectangle/ellipse/polygon region (or the current selection).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.rect, select.ellipse, select.polygon, mask.vector
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "region": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "rect"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "ellipse"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "polygon"
            },
            "points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "minItems": 3,
              "maxItems": 500
            }
          },
          "required": [
            "shape",
            "points"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Image region in document pixels"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_vector_mask","arguments":{}}

delete_mask

Delete a layer’s mask (layer or vector). Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): mask.delete
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "kind": {
      "type": "string",
      "enum": [
        "layer",
        "vector"
      ],
      "default": "layer"
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"delete_mask","arguments":{}}

invert_mask

Invert a layer mask.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): mask.invert
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"invert_mask","arguments":{}}

apply_mask

Apply (bake) the layer mask into the pixels. Requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): mask.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_mask","arguments":{}}

refine_mask

Soften a layer mask non-destructively via Properties feather/density.

  • Status: partial — Select and Mask (edge detection, decontaminate colors) is interactive and not scriptable; only feather and density are set.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): mask.refine
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000
    },
    "density": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"refine_mask","arguments":{}}

feather_selection

Feather the selection (px).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.modify
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1000
    }
  },
  "required": [
    "radius"
  ],
  "additionalProperties": false
}

Example: {"name":"feather_selection","arguments":{"radius":0.1}}

expand_selection

Expand the selection (px).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.modify
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 500
    }
  },
  "required": [
    "radius"
  ],
  "additionalProperties": false
}

Example: {"name":"expand_selection","arguments":{"radius":0.1}}

contract_selection

Contract the selection (px).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.modify
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 500
    }
  },
  "required": [
    "radius"
  ],
  "additionalProperties": false
}

Example: {"name":"contract_selection","arguments":{"radius":0.1}}

smooth_selection

Smooth the selection (px).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.modify
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 500
    }
  },
  "required": [
    "radius"
  ],
  "additionalProperties": false
}

Example: {"name":"smooth_selection","arguments":{"radius":0.1}}

get_selection_info

Whether a selection exists and its bounds.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): select.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_selection_info","arguments":{}}

7. Background & object editing

remove_background

Remove the background non-destructively: Select Subject (Photoshop ML) → layer mask on the subject layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.info, layer.select, select.subject, mask.create, smartObject.maskSubject, select.none
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"remove_background","arguments":{}}

replace_background

Mask out the background, then add a new background layer below the subject (solid color, gradient or image).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.subject, mask.create, fill.solid, fill.gradient, image.place, layer.arrange
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    },
    "gradient": {
      "type": "object",
      "properties": {
        "stops": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "description": "Hex color, e.g. #1A2B3C"
              },
              "location": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "opacity": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 100,
                "description": "Stop opacity (transparency stop at the same location)"
              }
            },
            "required": [
              "color",
              "location"
            ],
            "additionalProperties": false
          },
          "minItems": 2,
          "maxItems": 16
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 90
        },
        "type": {
          "type": "string",
          "enum": [
            "linear",
            "radial",
            "angle",
            "reflected",
            "diamond"
          ],
          "default": "linear"
        }
      },
      "required": [
        "stops"
      ],
      "additionalProperties": false
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"replace_background","arguments":{}}

create_transparent_background

Isolate the subject on transparency (mask) and hide any Background layer, ready for PNG export.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.subject, mask.create, layer.list, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_transparent_background","arguments":{}}

create_white_background

Add a pure white (#FFFFFF) fill layer at the bottom of the stack (e-commerce).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): fill.solid, layer.arrange
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_white_background","arguments":{}}

create_custom_background

Add a solid, gradient or image background layer at the bottom of the stack.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): fill.solid, fill.gradient, image.place, layer.arrange
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    },
    "gradient": {
      "type": "object",
      "properties": {
        "stops": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "description": "Hex color, e.g. #1A2B3C"
              },
              "location": {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              "opacity": {
                "type": "number",
                "minimum": 0,
                "maximum": 100,
                "default": 100,
                "description": "Stop opacity (transparency stop at the same location)"
              }
            },
            "required": [
              "color",
              "location"
            ],
            "additionalProperties": false
          },
          "minItems": 2,
          "maxItems": 16
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 90
        },
        "type": {
          "type": "string",
          "enum": [
            "linear",
            "radial",
            "angle",
            "reflected",
            "diamond"
          ],
          "default": "linear"
        }
      },
      "required": [
        "stops"
      ],
      "additionalProperties": false
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_custom_background","arguments":{}}

extend_background

Extend the canvas on any side and fill the new area with Content-Aware Fill on a flattened copy layer.

  • Status: partial — Content-Aware Fill works well for textures/skies; for complex scenes use generative_expand with a configured Firefly provider.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.info, doc.resizeCanvas, layer.create, select.rect, select.invert, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "left": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000,
      "default": 0
    },
    "right": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000,
      "default": 0
    },
    "top": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000,
      "default": 0
    },
    "bottom": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000,
      "default": 0
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"extend_background","arguments":{}}

remove_object

Remove an object inside a region (rect/ellipse/polygon) with Content-Aware Fill on a copy layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, select.rect, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "region": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "rect"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "ellipse"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "polygon"
            },
            "points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "minItems": 3,
              "maxItems": 500
            }
          },
          "required": [
            "shape",
            "points"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Image region in document pixels"
    },
    "expand": {
      "type": "number",
      "minimum": 0,
      "maximum": 200,
      "default": 8
    }
  },
  "required": [
    "region"
  ],
  "additionalProperties": false
}

Example: {"name":"remove_object","arguments":{"region":{}}}

move_object

Move an object: copy the region to its own layer, offset it, then fill the original spot with Content-Aware Fill.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.fromSelection, layer.translate, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "region": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "rect"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "ellipse"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "polygon"
            },
            "points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "minItems": 3,
              "maxItems": 500
            }
          },
          "required": [
            "shape",
            "points"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Image region in document pixels"
    },
    "dx": {
      "type": "number"
    },
    "dy": {
      "type": "number"
    }
  },
  "required": [
    "region",
    "dx",
    "dy"
  ],
  "additionalProperties": false
}

Example: {"name":"move_object","arguments":{"region":{},"dx":100,"dy":100}}

replace_object

Remove the object in a region and place a replacement image fitted into the same region.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): edit.contentAwareFill, image.place
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "region": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "rect"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "ellipse"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "polygon"
            },
            "points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "minItems": 3,
              "maxItems": 500
            }
          },
          "required": [
            "shape",
            "points"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Image region in document pixels"
    },
    "imagePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    }
  },
  "required": [
    "region",
    "imagePath"
  ],
  "additionalProperties": false
}

Example: {"name":"replace_object","arguments":{"region":{},"imagePath":"designs/example.png"}}

clean_image

General cleanup: subtle dust & scratches + median on a smart copy, plus optional spot removal.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "spots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "radius": {
            "type": "number",
            "minimum": 1,
            "maximum": 2000
          }
        },
        "required": [
          "x",
          "y",
          "radius"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 500
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 30
    }
  },
  "additionalProperties": false
}

Example: {"name":"clean_image","arguments":{}}

8. Photo retouching

smooth_skin

Skin smoothing: surface-blurred smart copy masked to skin tones (Color Range), blended by strength.

  • Status: partial — Heuristic, non-destructive layer stack built from Photoshop filters/adjustments; it is not a Neural Filter. Review with capture_preview.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, layer.smartObject, filter.apply, select.colorRange, mask.create, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    }
  },
  "additionalProperties": false
}

Example: {"name":"smooth_skin","arguments":{}}

retouch_skin

Skin retouch: optional blemish removal at given spots, then skin smoothing.

  • Status: partial — Heuristic, non-destructive layer stack built from Photoshop filters/adjustments; it is not a Neural Filter. Review with capture_preview.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): edit.contentAwareFill, filter.apply, mask.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    },
    "blemishes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "radius": {
            "type": "number",
            "minimum": 1,
            "maximum": 2000
          }
        },
        "required": [
          "x",
          "y",
          "radius"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"retouch_skin","arguments":{}}

remove_blemishes

Remove blemishes at given spots (x, y, radius) with Content-Aware Fill on a copy layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, select.ellipse, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "spots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "radius": {
            "type": "number",
            "minimum": 1,
            "maximum": 2000
          }
        },
        "required": [
          "x",
          "y",
          "radius"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 500
    }
  },
  "required": [
    "spots"
  ],
  "additionalProperties": false
}

Example: {"name":"remove_blemishes","arguments":{"spots":[]}}

remove_spots

Remove dust spots/specks at given points (Content-Aware Fill on a copy layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, select.ellipse, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "spots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "radius": {
            "type": "number",
            "minimum": 1,
            "maximum": 2000
          }
        },
        "required": [
          "x",
          "y",
          "radius"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 500
    }
  },
  "required": [
    "spots"
  ],
  "additionalProperties": false
}

Example: {"name":"remove_spots","arguments":{"spots":[]}}

remove_wrinkles

Reduce wrinkles in regions: Content-Aware Fill on a copy layer blended at 60% to keep texture.

  • Status: partial — Heuristic, non-destructive layer stack built from Photoshop filters/adjustments; it is not a Neural Filter. Review with capture_preview.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): edit.contentAwareFill, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "left": {
            "type": "number"
          },
          "top": {
            "type": "number"
          },
          "right": {
            "type": "number"
          },
          "bottom": {
            "type": "number"
          }
        },
        "required": [
          "left",
          "top",
          "right",
          "bottom"
        ],
        "additionalProperties": false,
        "description": "Rectangle in document pixels (origin top-left)"
      },
      "minItems": 1,
      "maxItems": 100
    },
    "blend": {
      "type": "number",
      "minimum": 10,
      "maximum": 100,
      "default": 60
    }
  },
  "required": [
    "regions"
  ],
  "additionalProperties": false
}

Example: {"name":"remove_wrinkles","arguments":{"regions":[]}}

whiten_teeth

Whiten teeth: desaturate yellows and lift lightness inside the teeth region(s). Adjustment layers masked to the given regions.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.ellipse, select.modify, adjust.layer, select.none
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "regions": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "rect"
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false,
                "description": "Rectangle in document pixels (origin top-left)"
              }
            },
            "required": [
              "shape",
              "bounds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "ellipse"
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false,
                "description": "Rectangle in document pixels (origin top-left)"
              }
            },
            "required": [
              "shape",
              "bounds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "polygon"
              },
              "points": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "additionalProperties": false
                },
                "minItems": 3,
                "maxItems": 500
              }
            },
            "required": [
              "shape",
              "points"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Image region in document pixels"
      },
      "minItems": 1,
      "maxItems": 20
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 3
    }
  },
  "required": [
    "regions"
  ],
  "additionalProperties": false
}

Example: {"name":"whiten_teeth","arguments":{"regions":[]}}

brighten_eyes

Brighten eyes: curves lift and slight saturation in the eye region(s). Adjustment layers masked to the given regions.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.ellipse, select.modify, adjust.layer, select.none
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "regions": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "rect"
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false,
                "description": "Rectangle in document pixels (origin top-left)"
              }
            },
            "required": [
              "shape",
              "bounds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "ellipse"
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false,
                "description": "Rectangle in document pixels (origin top-left)"
              }
            },
            "required": [
              "shape",
              "bounds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "polygon"
              },
              "points": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "additionalProperties": false
                },
                "minItems": 3,
                "maxItems": 500
              }
            },
            "required": [
              "shape",
              "points"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Image region in document pixels"
      },
      "minItems": 1,
      "maxItems": 20
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 3
    }
  },
  "required": [
    "regions"
  ],
  "additionalProperties": false
}

Example: {"name":"brighten_eyes","arguments":{"regions":[]}}

remove_red_eye

Remove red eye: fully desaturate and darken the pupil region(s). Adjustment layers masked to the given regions.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): select.ellipse, select.modify, adjust.layer, select.none
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "regions": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "rect"
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false,
                "description": "Rectangle in document pixels (origin top-left)"
              }
            },
            "required": [
              "shape",
              "bounds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "ellipse"
              },
              "bounds": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false,
                "description": "Rectangle in document pixels (origin top-left)"
              }
            },
            "required": [
              "shape",
              "bounds"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "shape": {
                "type": "string",
                "const": "polygon"
              },
              "points": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "additionalProperties": false
                },
                "minItems": 3,
                "maxItems": 500
              }
            },
            "required": [
              "shape",
              "points"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Image region in document pixels"
      },
      "minItems": 1,
      "maxItems": 20
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    },
    "feather": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 3
    }
  },
  "required": [
    "regions"
  ],
  "additionalProperties": false
}

Example: {"name":"remove_red_eye","arguments":{"regions":[]}}

reduce_noise

Noise reduction on a smart copy (median + surface blur), blended by strength.

  • Status: partial — Uses Median/Surface Blur; Camera Raw and Neural Filter denoise are not scriptable via ExtendScript.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    }
  },
  "additionalProperties": false
}

Example: {"name":"reduce_noise","arguments":{}}

sharpen_image

Sharpen on a copy layer: unsharp mask, smart sharpen or high-pass overlay.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "method": {
      "type": "string",
      "enum": [
        "unsharp",
        "smart",
        "highpass"
      ],
      "default": "smart"
    },
    "amount": {
      "type": "number",
      "minimum": 1,
      "maximum": 500,
      "default": 80
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 64,
      "default": 1.2
    }
  },
  "additionalProperties": false
}

Example: {"name":"sharpen_image","arguments":{}}

correct_exposure

Measure luminance in Photoshop and add Exposure + Levels adjustment layers to reach the target mean.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "targetMean": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 0.9,
      "default": 0.46
    }
  },
  "additionalProperties": false
}

Example: {"name":"correct_exposure","arguments":{}}

correct_white_balance

Gray-world white balance: measured channel means → per-channel Levels gamma (adjustment layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 80
    }
  },
  "additionalProperties": false
}

Example: {"name":"correct_white_balance","arguments":{}}

remove_scratches

Remove scratches: Dust & Scratches smart filter on a copy, optionally masked to regions; region list also gets Content-Aware Fill.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "radius": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 3
    },
    "threshold": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255,
      "default": 12
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "left": {
            "type": "number"
          },
          "top": {
            "type": "number"
          },
          "right": {
            "type": "number"
          },
          "bottom": {
            "type": "number"
          }
        },
        "required": [
          "left",
          "top",
          "right",
          "bottom"
        ],
        "additionalProperties": false,
        "description": "Rectangle in document pixels (origin top-left)"
      },
      "maxItems": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"remove_scratches","arguments":{}}

restore_photo

Old-photo restoration stack: dust & scratches, noise reduction, sharpening (smart filters on a copy) + measured tonal correction.

  • Status: partial — Heuristic, non-destructive layer stack built from Photoshop filters/adjustments; it is not a Neural Filter. Review with capture_preview.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply, ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    }
  },
  "additionalProperties": false
}

Example: {"name":"restore_photo","arguments":{}}

colorize_photo

Tint/tone a black-and-white photo with a gradient map in Color blend mode (sepia, warm, cool or custom 3 colors).

  • Status: partial — Photoshop’s Colorize Neural Filter is not scriptable; this applies an editable toning map, not AI colorization.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "preset": {
      "type": "string",
      "enum": [
        "sepia",
        "warm",
        "cool",
        "custom"
      ],
      "default": "sepia"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 3,
      "maxItems": 3,
      "description": "shadow, mid, highlight hex (custom)"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 70
    }
  },
  "additionalProperties": false
}

Example: {"name":"colorize_photo","arguments":{}}

enhance_portrait

Portrait enhancement: measured exposure + white balance, vibrance, skin smoothing and sharpening, all on separate layers.

  • Status: partial — Heuristic, non-destructive layer stack built from Photoshop filters/adjustments; it is not a Neural Filter. Review with capture_preview.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.analyze, adjust.layer, filter.apply, mask.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 40
    }
  },
  "additionalProperties": false
}

Example: {"name":"enhance_portrait","arguments":{}}

9. Color correction

adjust_brightness

Brightness. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "brightness": {
      "type": "number",
      "minimum": -150,
      "maximum": 150
    }
  },
  "required": [
    "brightness"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_brightness","arguments":{"brightness":100}}

adjust_contrast

Contrast. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "contrast": {
      "type": "number",
      "minimum": -50,
      "maximum": 100
    }
  },
  "required": [
    "contrast"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_contrast","arguments":{"contrast":100}}

adjust_exposure

Exposure (stops), offset and gamma. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "exposure": {
      "type": "number",
      "minimum": -20,
      "maximum": 20,
      "default": 0
    },
    "offset": {
      "type": "number",
      "minimum": -0.5,
      "maximum": 0.5,
      "default": 0
    },
    "gamma": {
      "type": "number",
      "minimum": 0.01,
      "maximum": 9.99,
      "default": 1
    }
  },
  "additionalProperties": false
}

Example: {"name":"adjust_exposure","arguments":{}}

adjust_saturation

Saturation (Hue/Saturation master). Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "saturation": {
      "type": "number",
      "minimum": -100,
      "maximum": 100
    }
  },
  "required": [
    "saturation"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_saturation","arguments":{"saturation":100}}

adjust_vibrance

Vibrance (protects skin tones) and saturation. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "vibrance": {
      "type": "number",
      "minimum": -100,
      "maximum": 100
    },
    "saturation": {
      "type": "number",
      "minimum": -100,
      "maximum": 100,
      "default": 0
    }
  },
  "required": [
    "vibrance"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_vibrance","arguments":{"vibrance":100}}

adjust_hue

Hue shift and optional lightness. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "hue": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "lightness": {
      "type": "number",
      "minimum": -100,
      "maximum": 100,
      "default": 0
    }
  },
  "required": [
    "hue"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_hue","arguments":{"hue":100}}

adjust_temperature

Warm (+) / cool (-) white balance via Color Balance midtones/highlights. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "temperature": {
      "type": "number",
      "minimum": -100,
      "maximum": 100
    }
  },
  "required": [
    "temperature"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_temperature","arguments":{"temperature":100}}

adjust_tint

Magenta (+) / green (-) tint via Color Balance. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "tint": {
      "type": "number",
      "minimum": -100,
      "maximum": 100
    }
  },
  "required": [
    "tint"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_tint","arguments":{"tint":100}}

adjust_levels

Levels: input black/white points, gamma, output range, per channel. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "channel": {
      "type": "string",
      "enum": [
        "composite",
        "red",
        "green",
        "blue"
      ],
      "default": "composite"
    },
    "inputBlack": {
      "type": "integer",
      "minimum": 0,
      "maximum": 253,
      "default": 0
    },
    "inputWhite": {
      "type": "integer",
      "minimum": 2,
      "maximum": 255,
      "default": 255
    },
    "gamma": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 9.99,
      "default": 1
    },
    "outputBlack": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255,
      "default": 0
    },
    "outputWhite": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255,
      "default": 255
    }
  },
  "additionalProperties": false
}

Example: {"name":"adjust_levels","arguments":{}}

adjust_curves

Curves with control points (0-255) per channel. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "channel": {
      "type": "string",
      "enum": [
        "composite",
        "red",
        "green",
        "blue"
      ],
      "default": "composite"
    },
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "input": {
            "type": "number",
            "minimum": 0,
            "maximum": 255
          },
          "output": {
            "type": "number",
            "minimum": 0,
            "maximum": 255
          }
        },
        "required": [
          "input",
          "output"
        ],
        "additionalProperties": false
      },
      "minItems": 2,
      "maxItems": 16
    }
  },
  "required": [
    "points"
  ],
  "additionalProperties": false
}

Example: {"name":"adjust_curves","arguments":{"points":[]}}

adjust_color_balance

Color Balance for shadows/midtones/highlights. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "shadows": {
      "type": "array",
      "minItems": 3,
      "maxItems": 3,
      "items": [
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        },
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        },
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        }
      ],
      "description": "[cyan↔red, magenta↔green, yellow↔blue]",
      "default": [
        0,
        0,
        0
      ]
    },
    "midtones": {
      "type": "array",
      "minItems": 3,
      "maxItems": 3,
      "items": [
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        },
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        },
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        }
      ],
      "description": "[cyan↔red, magenta↔green, yellow↔blue]",
      "default": [
        0,
        0,
        0
      ]
    },
    "highlights": {
      "type": "array",
      "minItems": 3,
      "maxItems": 3,
      "items": [
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        },
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        },
        {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        }
      ],
      "description": "[cyan↔red, magenta↔green, yellow↔blue]",
      "default": [
        0,
        0,
        0
      ]
    },
    "preserveLuminosity": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Example: {"name":"adjust_color_balance","arguments":{}}

apply_selective_color

Selective Color corrections per color range. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "corrections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string",
            "enum": [
              "reds",
              "yellows",
              "greens",
              "cyans",
              "blues",
              "magentas",
              "whites",
              "neutrals",
              "blacks"
            ]
          },
          "cyan": {
            "type": "number",
            "minimum": -100,
            "maximum": 100,
            "default": 0
          },
          "magenta": {
            "type": "number",
            "minimum": -100,
            "maximum": 100,
            "default": 0
          },
          "yellow": {
            "type": "number",
            "minimum": -100,
            "maximum": 100,
            "default": 0
          },
          "black": {
            "type": "number",
            "minimum": -100,
            "maximum": 100,
            "default": 0
          }
        },
        "required": [
          "color"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 9
    },
    "method": {
      "type": "string",
      "enum": [
        "relative",
        "absolute"
      ],
      "default": "relative"
    }
  },
  "required": [
    "corrections"
  ],
  "additionalProperties": false
}

Example: {"name":"apply_selective_color","arguments":{"corrections":[]}}

apply_black_and_white

Black & White with channel weights and optional tint. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "reds": {
      "type": "number",
      "minimum": -200,
      "maximum": 300,
      "default": 40
    },
    "yellows": {
      "type": "number",
      "minimum": -200,
      "maximum": 300,
      "default": 60
    },
    "greens": {
      "type": "number",
      "minimum": -200,
      "maximum": 300,
      "default": 40
    },
    "cyans": {
      "type": "number",
      "minimum": -200,
      "maximum": 300,
      "default": 60
    },
    "blues": {
      "type": "number",
      "minimum": -200,
      "maximum": 300,
      "default": 20
    },
    "magentas": {
      "type": "number",
      "minimum": -200,
      "maximum": 300,
      "default": 80
    },
    "tint": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_black_and_white","arguments":{}}

apply_gradient_map

Gradient Map (shadows→highlights colors). Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "stops": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "color": {
            "type": "string",
            "description": "Hex color, e.g. #1A2B3C"
          },
          "location": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "opacity": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "default": 100,
            "description": "Stop opacity (transparency stop at the same location)"
          }
        },
        "required": [
          "color",
          "location"
        ],
        "additionalProperties": false
      },
      "minItems": 2,
      "maxItems": 16
    }
  },
  "required": [
    "stops"
  ],
  "additionalProperties": false
}

Example: {"name":"apply_gradient_map","arguments":{"stops":[]}}

apply_photo_filter

Photo Filter (warming/cooling or custom color). Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#EC8A00"
    },
    "density": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "default": 25
    },
    "preserveLuminosity": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_photo_filter","arguments":{}}

apply_posterize

Posterize. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "levels": {
      "type": "integer",
      "minimum": 2,
      "maximum": 255,
      "default": 6
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_posterize","arguments":{}}

apply_threshold

Threshold. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "level": {
      "type": "integer",
      "minimum": 1,
      "maximum": 255,
      "default": 128
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_threshold","arguments":{}}

apply_invert

Invert colors. Non-destructive adjustment layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_invert","arguments":{}}

apply_color_lookup

Color Lookup (3D LUT).

  • Status: unsupported — Loading a .cube/.3dl LUT into a Color Lookup layer requires embedding the LUT profile data; not supported via documented scripting APIs.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Insert the adjustment layer above this layer (default: active)"
    },
    "clip": {
      "type": "boolean",
      "default": false,
      "description": "Clip the adjustment to the layer below (affects only that layer)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Opacity 0-100"
    },
    "blendMode": {
      "type": "string",
      "enum": [
        "normal",
        "dissolve",
        "darken",
        "multiply",
        "colorBurn",
        "linearBurn",
        "darkerColor",
        "lighten",
        "screen",
        "colorDodge",
        "linearDodge",
        "lighterColor",
        "overlay",
        "softLight",
        "hardLight",
        "vividLight",
        "linearLight",
        "pinLight",
        "hardMix",
        "difference",
        "exclusion",
        "subtract",
        "divide",
        "hue",
        "saturation",
        "color",
        "luminosity"
      ]
    },
    "lut": {
      "type": "string"
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_color_lookup","arguments":{}}

apply_cinematic_color_grade

Cinematic grade as a group of adjustment layers (teal_orange, bleach_bypass, noir, warm_film, cool_night); strength = group opacity.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.create, adjust.layer, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "style": {
      "type": "string",
      "enum": [
        "teal_orange",
        "bleach_bypass",
        "noir",
        "warm_film",
        "cool_night"
      ],
      "default": "teal_orange"
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 70
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_cinematic_color_grade","arguments":{}}

match_colors

Match the color/tonal statistics of a target layer (or document) to a reference document or layer using measured channel means → clipped Levels per channel.

  • Status: partial — Statistical match (mean per channel and luminance), not Photoshop’s Match Color dialog.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "referenceDoc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "referenceLayer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"match_colors","arguments":{}}

10. Filters & effects

apply_gaussian_blur

Gaussian Blur. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1000
    }
  },
  "required": [
    "radius"
  ],
  "additionalProperties": false
}

Example: {"name":"apply_gaussian_blur","arguments":{"radius":0.1}}

apply_motion_blur

Motion Blur. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "angle": {
      "type": "number",
      "minimum": -360,
      "maximum": 360,
      "default": 0
    },
    "distance": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2000,
      "default": 20
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_motion_blur","arguments":{}}

apply_radial_blur

Radial Blur (spin or zoom) around the canvas center. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "amount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 10
    },
    "method": {
      "type": "string",
      "enum": [
        "spin",
        "zoom"
      ],
      "default": "zoom"
    },
    "quality": {
      "type": "string",
      "enum": [
        "draft",
        "good",
        "best"
      ],
      "default": "good"
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_radial_blur","arguments":{}}

apply_surface_blur

Surface Blur (edge-preserving). Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "radius": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 5
    },
    "threshold": {
      "type": "integer",
      "minimum": 2,
      "maximum": 255,
      "default": 15
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_surface_blur","arguments":{}}

apply_smart_sharpen

Smart Sharpen. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "amount": {
      "type": "number",
      "minimum": 1,
      "maximum": 500,
      "default": 100
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 64,
      "default": 1
    },
    "noiseReduction": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 10
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_smart_sharpen","arguments":{}}

apply_unsharp_mask

Unsharp Mask. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "amount": {
      "type": "number",
      "minimum": 1,
      "maximum": 500,
      "default": 80
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1000,
      "default": 1.5
    },
    "threshold": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255,
      "default": 2
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_unsharp_mask","arguments":{}}

apply_high_pass

High Pass (use with overlay blend for sharpening). Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "radius": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 1000,
      "default": 3
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_high_pass","arguments":{}}

apply_noise

Add Noise / film grain. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "amount": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 400,
      "default": 5
    },
    "distribution": {
      "type": "string",
      "enum": [
        "uniform",
        "gaussian"
      ],
      "default": "gaussian"
    },
    "monochromatic": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_noise","arguments":{}}

apply_median

Median (noise / texture removal). Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "radius": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 2
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_median","arguments":{}}

apply_dust_and_scratches

Dust & Scratches. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "radius": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 2
    },
    "threshold": {
      "type": "integer",
      "minimum": 0,
      "maximum": 255,
      "default": 10
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_dust_and_scratches","arguments":{}}

apply_texture

Texturizer (brick, burlap, canvas, sandstone). Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "texture": {
      "type": "string",
      "enum": [
        "brick",
        "burlap",
        "canvas",
        "sandstone"
      ],
      "default": "canvas"
    },
    "scaling": {
      "type": "integer",
      "minimum": 50,
      "maximum": 200,
      "default": 100
    },
    "relief": {
      "type": "integer",
      "minimum": 0,
      "maximum": 50,
      "default": 4
    },
    "light": {
      "type": "string",
      "enum": [
        "top",
        "topLeft",
        "left",
        "bottomLeft",
        "bottom",
        "bottomRight",
        "right",
        "topRight"
      ],
      "default": "top"
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_texture","arguments":{}}

apply_emboss

Emboss filter. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "angle": {
      "type": "number",
      "minimum": -360,
      "maximum": 360,
      "default": 135
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 3
    },
    "amount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_emboss","arguments":{}}

apply_find_edges

Find Edges. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_find_edges","arguments":{}}

apply_oil_paint

Oil Paint filter. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "stylization": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10,
      "default": 4
    },
    "cleanliness": {
      "type": "number",
      "minimum": 0,
      "maximum": 10,
      "default": 5
    },
    "scale": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10,
      "default": 1
    },
    "bristleDetail": {
      "type": "number",
      "minimum": 0,
      "maximum": 10,
      "default": 3
    },
    "lighting": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_oil_paint","arguments":{}}

apply_distortion

Distortion filters: twirl, pinch, spherize, ripple. Applied as a Smart Filter by default (smart: false applies destructively to a pixel layer).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "smart": {
      "type": "boolean",
      "default": true,
      "description": "Apply as an editable Smart Filter (converts the layer to a smart object if needed)"
    },
    "kind": {
      "type": "string",
      "enum": [
        "twirl",
        "pinch",
        "spherize",
        "ripple"
      ],
      "default": "twirl"
    },
    "amount": {
      "type": "number",
      "minimum": -999,
      "maximum": 999,
      "default": 50
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_distortion","arguments":{}}

apply_glow

Outer glow. Layer style (editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "settings": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#FFE9A8"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 60
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 20
        },
        "spread": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 0
        },
        "blendMode": {
          "type": "string",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "colorBurn",
            "linearBurn",
            "darkerColor",
            "lighten",
            "screen",
            "colorDodge",
            "linearDodge",
            "lighterColor",
            "overlay",
            "softLight",
            "hardLight",
            "vividLight",
            "linearLight",
            "pinLight",
            "hardMix",
            "difference",
            "exclusion",
            "subtract",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ],
          "default": "screen"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_glow","arguments":{}}

apply_inner_glow

Inner glow. Layer style (editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "settings": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#FFE9A8"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 60
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 20
        },
        "spread": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 0
        },
        "blendMode": {
          "type": "string",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "colorBurn",
            "linearBurn",
            "darkerColor",
            "lighten",
            "screen",
            "colorDodge",
            "linearDodge",
            "lighterColor",
            "overlay",
            "softLight",
            "hardLight",
            "vividLight",
            "linearLight",
            "pinLight",
            "hardMix",
            "difference",
            "exclusion",
            "subtract",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ],
          "default": "screen"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_inner_glow","arguments":{}}

apply_shadow

Drop shadow. Layer style (editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "settings": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#000000"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 60
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 120
        },
        "distance": {
          "type": "number",
          "minimum": 0,
          "maximum": 30000,
          "default": 10
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 15
        },
        "spread": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 0
        },
        "blendMode": {
          "type": "string",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "colorBurn",
            "linearBurn",
            "darkerColor",
            "lighten",
            "screen",
            "colorDodge",
            "linearDodge",
            "lighterColor",
            "overlay",
            "softLight",
            "hardLight",
            "vividLight",
            "linearLight",
            "pinLight",
            "hardMix",
            "difference",
            "exclusion",
            "subtract",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ],
          "default": "multiply"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_shadow","arguments":{}}

apply_inner_shadow

Inner shadow. Layer style (editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "settings": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#000000"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 60
        },
        "angle": {
          "type": "number",
          "minimum": -360,
          "maximum": 360,
          "default": 120
        },
        "distance": {
          "type": "number",
          "minimum": 0,
          "maximum": 30000,
          "default": 10
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 15
        },
        "spread": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 0
        },
        "blendMode": {
          "type": "string",
          "enum": [
            "normal",
            "dissolve",
            "darken",
            "multiply",
            "colorBurn",
            "linearBurn",
            "darkerColor",
            "lighten",
            "screen",
            "colorDodge",
            "linearDodge",
            "lighterColor",
            "overlay",
            "softLight",
            "hardLight",
            "vividLight",
            "linearLight",
            "pinLight",
            "hardMix",
            "difference",
            "exclusion",
            "subtract",
            "divide",
            "hue",
            "saturation",
            "color",
            "luminosity"
          ],
          "default": "multiply"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_inner_shadow","arguments":{}}

apply_stroke

Stroke outline. Layer style (editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "settings": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C",
          "default": "#000000"
        },
        "size": {
          "type": "number",
          "minimum": 1,
          "maximum": 250,
          "default": 3
        },
        "position": {
          "type": "string",
          "enum": [
            "outside",
            "inside",
            "center"
          ],
          "default": "outside"
        },
        "opacity": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "default": 100
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_stroke","arguments":{}}

apply_bevel

Bevel & emboss. Layer style (editable).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "settings": {
      "type": "object",
      "properties": {
        "style": {
          "type": "string",
          "enum": [
            "innerBevel",
            "outerBevel",
            "emboss",
            "pillowEmboss"
          ],
          "default": "innerBevel"
        },
        "depth": {
          "type": "number",
          "minimum": 1,
          "maximum": 1000,
          "default": 100
        },
        "size": {
          "type": "number",
          "minimum": 0,
          "maximum": 250,
          "default": 5
        },
        "soften": {
          "type": "number",
          "minimum": 0,
          "maximum": 16,
          "default": 0
        },
        "angle": {
          "type": "number",
          "default": 120
        },
        "altitude": {
          "type": "number",
          "minimum": 0,
          "maximum": 90,
          "default": 30
        },
        "direction": {
          "type": "string",
          "enum": [
            "up",
            "down"
          ],
          "default": "up"
        }
      },
      "additionalProperties": false,
      "default": {}
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_bevel","arguments":{}}

clear_layer_effects

Remove all layer styles from a layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.clearEffects
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"clear_layer_effects","arguments":{}}

apply_lens_blur

Lens Blur.

  • Status: unsupported — Lens Blur uses a depth map in an interactive dialog; its descriptor is not documented for scripting.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_lens_blur","arguments":{}}

apply_perspective_warp

Perspective Warp.

  • Status: unsupported — Perspective Warp requires interactive quad placement.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_perspective_warp","arguments":{}}

apply_liquify

Liquify.

  • Status: unsupported — Liquify is an interactive brush workspace with no scripting API.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_liquify","arguments":{}}

11. Photo compositing

combine_images

Combine images into one document: stacked layers, side-by-side, or a grid. Each image is a smart object layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, image.place
Input schema
{
  "type": "object",
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "minItems": 2,
      "maxItems": 50
    },
    "layout": {
      "type": "string",
      "enum": [
        "stack",
        "horizontal",
        "vertical",
        "grid"
      ],
      "default": "horizontal"
    },
    "cell": {
      "type": "integer",
      "minimum": 32,
      "maximum": 10000,
      "default": 1000
    },
    "gap": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000,
      "default": 0
    },
    "background": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#FFFFFF"
    }
  },
  "required": [
    "paths"
  ],
  "additionalProperties": false
}

Example: {"name":"combine_images","arguments":{"paths":[]}}

create_photo_collage

Photo collage: each photo fills (cover) a grid cell, clipped to a cell shape, with gaps and background.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, shape.rect, image.place, layer.clip
Input schema
{
  "type": "object",
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "minItems": 2,
      "maxItems": 60
    },
    "columns": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12,
      "default": 3
    },
    "width": {
      "type": "integer",
      "minimum": 100,
      "maximum": 20000,
      "default": 3000
    },
    "height": {
      "type": "integer",
      "minimum": 100,
      "maximum": 20000,
      "default": 2000
    },
    "gap": {
      "type": "integer",
      "minimum": 0,
      "maximum": 500,
      "default": 20
    },
    "radius": {
      "type": "number",
      "minimum": 0,
      "maximum": 500,
      "default": 0
    },
    "background": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#FFFFFF"
    }
  },
  "required": [
    "paths"
  ],
  "additionalProperties": false
}

Example: {"name":"create_photo_collage","arguments":{"paths":[]}}

create_photo_composite

Composite a subject photo onto a background photo: subject cut out (mask), scaled into a box, color-matched to the background, with contact shadow.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, image.place, select.subject, mask.create, ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "background": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "subject": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 2000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 1333
    },
    "subjectBox": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        },
        "width": {
          "type": "number",
          "minimum": 1
        },
        "height": {
          "type": "number",
          "minimum": 1
        }
      },
      "required": [
        "x",
        "y",
        "width",
        "height"
      ],
      "additionalProperties": false
    },
    "shadow": {
      "type": "boolean",
      "default": true
    },
    "matchColors": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "background",
    "subject"
  ],
  "additionalProperties": false
}

Example: {"name":"create_photo_composite","arguments":{"background":"Example","subject":"Example"}}

create_double_exposure

Double exposure: portrait on light background, texture photo inside the subject silhouette (Select Subject mask) with Screen blend.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, image.place, select.subject, mask.create, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "portrait": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "texture": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 2000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 2500
    },
    "background": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#F4F1EC"
    }
  },
  "required": [
    "portrait",
    "texture"
  ],
  "additionalProperties": false
}

Example: {"name":"create_double_exposure","arguments":{"portrait":"Example","texture":"Example"}}

create_cinematic_scene

Cinematic look: teal/orange grade, warm key light glow, vignette. Works on the active document with editable layers.

  • Status: partial — Builds mood (grade, light, atmosphere, vignette) from layers; it does not generate new scene content unless you place assets or use generate_image.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer, fill.gradient, shape.ellipse, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 70
    },
    "lightColor": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    },
    "elements": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 20,
      "description": "Optional extra images to place (smart objects)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_cinematic_scene","arguments":{}}

create_fantasy_scene

Fantasy mood: cool night grade, magical glow, haze. Works on the active document with editable layers.

  • Status: partial — Builds mood (grade, light, atmosphere, vignette) from layers; it does not generate new scene content unless you place assets or use generate_image.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer, fill.gradient, shape.ellipse, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 70
    },
    "lightColor": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    },
    "elements": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 20,
      "description": "Optional extra images to place (smart objects)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_fantasy_scene","arguments":{}}

create_surreal_artwork

Surreal mood: warm film grade, dreamy glow, soft haze. Works on the active document with editable layers.

  • Status: partial — Builds mood (grade, light, atmosphere, vignette) from layers; it does not generate new scene content unless you place assets or use generate_image.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): adjust.layer, fill.gradient, shape.ellipse, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 70
    },
    "lightColor": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    },
    "elements": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 20,
      "description": "Optional extra images to place (smart objects)"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_surreal_artwork","arguments":{}}

create_product_composite

Product shot: cut out the product, place on a gradient set, add reflection, contact shadow and rim glow.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, fill.gradient, image.place, select.subject, mask.create, layer.effects
Input schema
{
  "type": "object",
  "properties": {
    "product": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "width": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 2000
    },
    "height": {
      "type": "integer",
      "minimum": 64,
      "maximum": 20000,
      "default": 2000
    },
    "backdrop": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": [
        {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C"
        },
        {
          "type": "string",
          "description": "Hex color, e.g. #1A2B3C"
        }
      ],
      "default": [
        "#2A2A2A",
        "#050505"
      ]
    },
    "reflection": {
      "type": "boolean",
      "default": true
    },
    "glow": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C"
    }
  },
  "required": [
    "product"
  ],
  "additionalProperties": false
}

Example: {"name":"create_product_composite","arguments":{"product":"Example"}}

create_realistic_shadow

Contact/cast shadow from a layer’s shape: filled silhouette below the layer, squashed, blurred (smart filter) and multiplied.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.create, select.layerPixels, edit.fillSelection, layer.transform, filter.apply
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 50
    },
    "blur": {
      "type": "number",
      "minimum": 0,
      "maximum": 500,
      "default": 15
    },
    "squash": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "default": 30,
      "description": "Vertical scale % of the silhouette"
    },
    "offsetY": {
      "type": "number",
      "default": 0
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_realistic_shadow","arguments":{}}

create_reflection

Mirror reflection below a layer: flipped copy with a gradient fade mask.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, layer.transform, mask.gradient, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 30
    },
    "gap": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000,
      "default": 0
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_reflection","arguments":{}}

match_lighting

Match a layer’s brightness/color to the rest of the image: measured statistics → clipped Levels on the layer.

  • Status: partial — Global statistics only; directional light is not re-rendered.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "referenceLayer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 70
    }
  },
  "additionalProperties": false
}

Example: {"name":"match_lighting","arguments":{}}

match_colors_between_images

Match the target document’s colors to a reference document (both open): per-channel Levels from measured means.

  • Status: partial — Statistical match, not the Match Color dialog.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.analyze, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "targetDoc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "referenceDoc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 80
    }
  },
  "required": [
    "referenceDoc"
  ],
  "additionalProperties": false
}

Example: {"name":"match_colors_between_images","arguments":{"referenceDoc":{}}}

create_depth_effect

Fake shallow depth of field: blurred smart copy masked to everything except the subject (Select Subject).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, filter.apply, select.subject, mask.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "blur": {
      "type": "number",
      "minimum": 1,
      "maximum": 200,
      "default": 12
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_depth_effect","arguments":{}}

12. Digital art

create_digital_painting

Digital painting setup. Creates a 300ppi canvas with named layer groups and a palette.

  • Status: partial — Sets up the document; brushwork must be done by the artist or by an external image provider.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, layer.create, shape.rect
Input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 3000
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 2000
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "cinematic"
    },
    "subject": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_digital_painting","arguments":{}}

create_illustration

Illustration setup. Creates a 300ppi canvas with named layer groups and a palette.

  • Status: partial — Sets up the document; brushwork must be done by the artist or by an external image provider.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, layer.create, shape.rect
Input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 3000
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 2000
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "cinematic"
    },
    "subject": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_illustration","arguments":{}}

create_character_art

Character art setup. Creates a 300ppi canvas with named layer groups and a palette.

  • Status: partial — Sets up the document; brushwork must be done by the artist or by an external image provider.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, layer.create, shape.rect
Input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 3000
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 2000
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "cinematic"
    },
    "subject": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_character_art","arguments":{}}

create_concept_art

Concept art setup. Creates a 300ppi canvas with named layer groups and a palette.

  • Status: partial — Sets up the document; brushwork must be done by the artist or by an external image provider.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, layer.create, shape.rect
Input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 3000
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 2000
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "cinematic"
    },
    "subject": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_concept_art","arguments":{}}

create_matte_painting

Matte painting setup (wide plate). Creates a 300ppi canvas with named layer groups and a palette.

  • Status: partial — Sets up the document; brushwork must be done by the artist or by an external image provider.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, layer.create, shape.rect
Input schema
{
  "type": "object",
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 3000
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 20000,
      "default": 2000
    },
    "title": {
      "type": "string",
      "maxLength": 120
    },
    "style": {
      "type": "string",
      "enum": [
        "luxury",
        "minimal",
        "bold",
        "cinematic",
        "vintage",
        "tech",
        "nature",
        "playful",
        "corporate"
      ],
      "default": "cinematic"
    },
    "subject": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_matte_painting","arguments":{}}

create_sketch

Pencil-sketch effect: desaturated copy + inverted copy in Color Dodge with Gaussian Blur (classic recipe, editable smart filter).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, filter.apply, layer.props, layer.group
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "detail": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "default": 8,
      "description": "Blur radius: higher = bolder lines"
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_sketch","arguments":{}}

create_line_art

Line art: Find Edges on a desaturated copy, then a Threshold adjustment clipped to it.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, filter.apply, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "threshold": {
      "type": "integer",
      "minimum": 1,
      "maximum": 255,
      "default": 200
    }
  },
  "additionalProperties": false
}

Example: {"name":"create_line_art","arguments":{}}

apply_painting_effect

Painterly look on a smart copy: oil (Oil Paint filter), watercolor (median + surface blur + texture) or poster (median + posterize).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.duplicate, layer.smartObject, filter.apply, adjust.layer
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "style": {
      "type": "string",
      "enum": [
        "oil",
        "watercolor",
        "poster"
      ],
      "default": "oil"
    },
    "strength": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "default": 60
    }
  },
  "additionalProperties": false
}

Example: {"name":"apply_painting_effect","arguments":{}}

create_custom_brush

Define a brush preset from the selection.

  • Status: unsupported — Edit > Define Brush Preset is not in the documented scripting DOM; brush presets cannot be created or listed programmatically.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

Example: {"name":"create_custom_brush","arguments":{"name":"Example"}}

manage_brush_presets

List / delete / rename brush presets.

  • Status: unsupported — The Brushes panel is not exposed to scripting.
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "list",
        "delete",
        "rename"
      ],
      "default": "list"
    }
  },
  "additionalProperties": false
}

Example: {"name":"manage_brush_presets","arguments":{}}

13. AI integration

get_ai_capabilities

Honest status of AI features: Photoshop in-app AI vs. programmatic access, and which external providers are configured.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"get_ai_capabilities","arguments":{}}

generative_fill

Generative fill of a region via Adobe Firefly Services (needs FIREFLY_CLIENT_ID/SECRET). Result is placed as a new masked layer over the region.

  • Status: requires_provider — Photoshop’s in-app Generative Fill is not exposed to scripting; this uploads a JPEG of the canvas and a mask to Firefly.
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): ps.preview, image.place, select.rect, mask.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "prompt": {
      "type": "string",
      "maxLength": 1000
    },
    "shape": {
      "type": "string",
      "enum": [
        "rect",
        "ellipse"
      ],
      "default": "rect"
    }
  },
  "required": [
    "bounds"
  ],
  "additionalProperties": false
}

Example: {"name":"generative_fill","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100}}}

generative_expand

Expand the canvas and fill the new area via Firefly Services; with allowFallback the server uses Content-Aware extend_background instead when no provider is configured (reported).

  • Status: requires_provider
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): doc.resizeCanvas, image.place, edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "left": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "right": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "top": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "bottom": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "prompt": {
      "type": "string",
      "maxLength": 1000
    },
    "allowFallback": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"generative_expand","arguments":{}}

generate_image

Generate an image with Firefly Services (needs credentials), save it under output/generated and optionally place it into the active document.

  • Status: requires_provider
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): image.place
Input schema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 3,
      "maxLength": 1000
    },
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 2688,
      "default": 1024
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 2688,
      "default": 1024
    },
    "negativePrompt": {
      "type": "string",
      "maxLength": 1000
    },
    "place": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false
}

Example: {"name":"generate_image","arguments":{"prompt":"Example"}}

generate_background

Generate a background with Firefly at the document size and place it at the bottom of the stack.

  • Status: requires_provider
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): image.place, layer.arrange
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "prompt": {
      "type": "string",
      "minLength": 3,
      "maxLength": 1000
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false
}

Example: {"name":"generate_background","arguments":{"prompt":"Example"}}

generate_variations

Generate several variations of a prompt (files only, nothing placed).

  • Status: requires_provider
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 3,
      "maxLength": 1000
    },
    "width": {
      "type": "integer",
      "minimum": 256,
      "maximum": 2688,
      "default": 1024
    },
    "height": {
      "type": "integer",
      "minimum": 256,
      "maximum": 2688,
      "default": 1024
    },
    "negativePrompt": {
      "type": "string",
      "maxLength": 1000
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4,
      "default": 3
    }
  },
  "required": [
    "prompt"
  ],
  "additionalProperties": false
}

Example: {"name":"generate_variations","arguments":{"prompt":"Example"}}

ai_remove_object

Remove an object in a region with Photoshop’s Content-Aware Fill (native, no external service).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): edit.contentAwareFill
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "region": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "rect"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "ellipse"
            },
            "bounds": {
              "type": "object",
              "properties": {
                "left": {
                  "type": "number"
                },
                "top": {
                  "type": "number"
                },
                "right": {
                  "type": "number"
                },
                "bottom": {
                  "type": "number"
                }
              },
              "required": [
                "left",
                "top",
                "right",
                "bottom"
              ],
              "additionalProperties": false,
              "description": "Rectangle in document pixels (origin top-left)"
            }
          },
          "required": [
            "shape",
            "bounds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "shape": {
              "type": "string",
              "const": "polygon"
            },
            "points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "minItems": 3,
              "maxItems": 500
            }
          },
          "required": [
            "shape",
            "points"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Image region in document pixels"
    },
    "expand": {
      "type": "number",
      "minimum": 0,
      "maximum": 200,
      "default": 8
    }
  },
  "required": [
    "region"
  ],
  "additionalProperties": false
}

Example: {"name":"ai_remove_object","arguments":{"region":{}}}

ai_replace_object

Replace what is inside a rectangle with prompt-driven content (generative_fill via Firefly).

  • Status: requires_provider
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): ps.preview, image.place, mask.create
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "bounds": {
      "type": "object",
      "properties": {
        "left": {
          "type": "number"
        },
        "top": {
          "type": "number"
        },
        "right": {
          "type": "number"
        },
        "bottom": {
          "type": "number"
        }
      },
      "required": [
        "left",
        "top",
        "right",
        "bottom"
      ],
      "additionalProperties": false,
      "description": "Rectangle in document pixels (origin top-left)"
    },
    "prompt": {
      "type": "string",
      "minLength": 3,
      "maxLength": 1000
    }
  },
  "required": [
    "bounds",
    "prompt"
  ],
  "additionalProperties": false
}

Example: {"name":"ai_replace_object","arguments":{"bounds":{"left":0,"top":0,"right":200,"bottom":100},"prompt":"Example"}}

ai_image_analysis

Measure the image in Photoshop (luminance percentiles, channel means, saturation, clipping, dominant colors) and interpret it into findings + suggested tool calls, optionally with a preview image.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): ps.analyze, ps.preview
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Layer reference {id} (preferred, from get_layers) or {name}. Omit to use the active layer."
    },
    "includePreview": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}

Example: {"name":"ai_image_analysis","arguments":{}}

ai_design_assistant

Design review of the active document: layer hygiene, text legibility (font size vs canvas, measured contrast against the layer’s background sample), missing fonts, hidden/empty layers, and image statistics, with suggested next tool calls.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info, layer.list, ps.analyze, ps.preview
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "goal": {
      "type": "string",
      "maxLength": 500
    }
  },
  "additionalProperties": false
}

Example: {"name":"ai_design_assistant","arguments":{}}

14. Actions & automation

get_action_sets

List action sets (from the Actions panel).

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): action.list
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"get_action_sets","arguments":{}}

get_actions

List actions, optionally for one set.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): action.list
Input schema
{
  "type": "object",
  "properties": {
    "set": {
      "type": "string",
      "maxLength": 255
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_actions","arguments":{}}

run_action

Play a recorded Photoshop action. Actions can do anything the user recorded (including saving or deleting), so this requires confirm: true.

  • Status: supported
  • Kind: destructive (confirm: true)
  • Photoshop implementation (JSX bridge ops): action.run
Input schema
{
  "type": "object",
  "properties": {
    "set": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "action": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "confirm": {
      "type": "boolean",
      "description": "Must be true for destructive operations, after asking the user"
    }
  },
  "required": [
    "set",
    "action"
  ],
  "additionalProperties": false
}

Example: {"name":"run_action","arguments":{"set":"Example","action":"Example"}}

batch_process

Batch: for each input file run tool steps (doc is injected), export a copy, close without saving. Source files are never changed.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open, doc.saveAs, doc.close
Input schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 10000
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "recursive": {
      "type": "boolean",
      "default": false
    },
    "outputFolder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Output folder inside an allowed directory"
    },
    "suffix": {
      "type": "string",
      "maxLength": 40,
      "pattern": "^[\\w.-]*$",
      "default": ""
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "background": {
      "type": "boolean",
      "default": false,
      "description": "Return an executionId immediately"
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-zA-Z][\\w-]{0,40}$",
            "description": "Step id; later steps may reference its result as {{steps.<id>.data.<path>}}"
          },
          "tool": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "args": {
            "type": "object",
            "additionalProperties": {},
            "default": {}
          },
          "description": {
            "type": "string",
            "maxLength": 500
          },
          "continueOnError": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "tool"
        ],
        "additionalProperties": false
      },
      "maxItems": 50,
      "default": []
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ],
      "default": "jpg"
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "outputFolder"
  ],
  "additionalProperties": false
}

Example: {"name":"batch_process","arguments":{"outputFolder":"Example"}}

resize_batch

Batch resize copies (width and/or height; aspect kept if one is omitted).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open, doc.saveAs, doc.close
Input schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 10000
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "recursive": {
      "type": "boolean",
      "default": false
    },
    "outputFolder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Output folder inside an allowed directory"
    },
    "suffix": {
      "type": "string",
      "maxLength": 40,
      "pattern": "^[\\w.-]*$",
      "default": ""
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "background": {
      "type": "boolean",
      "default": false,
      "description": "Return an executionId immediately"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30000
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ],
      "default": "jpg"
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "outputFolder"
  ],
  "additionalProperties": false
}

Example: {"name":"resize_batch","arguments":{"outputFolder":"Example"}}

convert_batch

Batch convert files to another format.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open, doc.saveAs, doc.close
Input schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 10000
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "recursive": {
      "type": "boolean",
      "default": false
    },
    "outputFolder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Output folder inside an allowed directory"
    },
    "suffix": {
      "type": "string",
      "maxLength": 40,
      "pattern": "^[\\w.-]*$",
      "default": ""
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "background": {
      "type": "boolean",
      "default": false,
      "description": "Return an executionId immediately"
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ]
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "outputFolder",
    "format"
  ],
  "additionalProperties": false
}

Example: {"name":"convert_batch","arguments":{"outputFolder":"Example","format":"psd"}}

export_batch

Batch export (e.g. PSDs → PNG + JPEG): one pass per format.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open, doc.saveAs, doc.close
Input schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 10000
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "recursive": {
      "type": "boolean",
      "default": false
    },
    "outputFolder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Output folder inside an allowed directory"
    },
    "suffix": {
      "type": "string",
      "maxLength": 40,
      "pattern": "^[\\w.-]*$",
      "default": ""
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "background": {
      "type": "boolean",
      "default": false,
      "description": "Return an executionId immediately"
    },
    "formats": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "psd",
          "psb",
          "png",
          "jpg",
          "tiff",
          "pdf",
          "webp",
          "gif",
          "bmp"
        ]
      },
      "minItems": 1,
      "maxItems": 5
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "outputFolder",
    "formats"
  ],
  "additionalProperties": false
}

Example: {"name":"export_batch","arguments":{"outputFolder":"Example","formats":[]}}

watermark_batch

Batch watermark copies with text (and/or a logo image) at a corner or center.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.open, text.create, image.place, doc.saveAs, doc.close
Input schema
{
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 10000
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "recursive": {
      "type": "boolean",
      "default": false
    },
    "outputFolder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Output folder inside an allowed directory"
    },
    "suffix": {
      "type": "string",
      "maxLength": 40,
      "pattern": "^[\\w.-]*$",
      "default": ""
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "background": {
      "type": "boolean",
      "default": false,
      "description": "Return an executionId immediately"
    },
    "text": {
      "type": "string",
      "maxLength": 200
    },
    "logo": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "position": {
      "type": "string",
      "enum": [
        "bottomRight",
        "bottomLeft",
        "topRight",
        "topLeft",
        "center"
      ],
      "default": "bottomRight"
    },
    "opacity": {
      "type": "number",
      "minimum": 5,
      "maximum": 100,
      "default": 50
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#FFFFFF"
    },
    "sizePercent": {
      "type": "number",
      "minimum": 1,
      "maximum": 50,
      "default": 4
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ],
      "default": "jpg"
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "outputFolder"
  ],
  "additionalProperties": false
}

Example: {"name":"watermark_batch","arguments":{"outputFolder":"Example"}}

add_watermark

Add a text and/or logo watermark to the document.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.info, text.create, image.place, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "doc": {},
    "text": {
      "type": "string",
      "maxLength": 200
    },
    "logo": {
      "type": "string"
    },
    "position": {
      "type": "string",
      "enum": [
        "bottomRight",
        "bottomLeft",
        "topRight",
        "topLeft",
        "center"
      ],
      "default": "bottomRight"
    },
    "opacity": {
      "type": "number",
      "minimum": 5,
      "maximum": 100,
      "default": 50
    },
    "color": {
      "type": "string",
      "description": "Hex color, e.g. #1A2B3C",
      "default": "#FFFFFF"
    },
    "sizePercent": {
      "type": "number",
      "minimum": 1,
      "maximum": 50,
      "default": 4
    }
  },
  "additionalProperties": false
}

Example: {"name":"add_watermark","arguments":{}}

plan_workflow

Turn a natural-language design brief into an ordered plan of tool calls (nothing is executed). Review it, then run it with execute_workflow { steps }.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 5,
      "maxLength": 4000
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 20
    },
    "outputFolder": {
      "type": "string",
      "maxLength": 200,
      "default": "designs"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"plan_workflow","arguments":{"brief":"Example"}}

create_automation_workflow

Store a reusable workflow (named list of tool steps; later steps may reference {{steps..data…}} and {{vars.x}}).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "workflow": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "description": {
          "type": "string",
          "maxLength": 2000
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[a-zA-Z][\\w-]{0,40}$",
                "description": "Step id; later steps may reference its result as {{steps.<id>.data.<path>}}"
              },
              "tool": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "args": {
                "type": "object",
                "additionalProperties": {},
                "default": {}
              },
              "description": {
                "type": "string",
                "maxLength": 500
              },
              "continueOnError": {
                "type": "boolean",
                "default": false
              }
            },
            "required": [
              "tool"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 200
        }
      },
      "required": [
        "name",
        "steps"
      ],
      "additionalProperties": false
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    }
  },
  "required": [
    "workflow"
  ],
  "additionalProperties": false
}

Example: {"name":"create_automation_workflow","arguments":{"workflow":{}}}

list_workflows

Stored workflows and built-in templates.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"list_workflows","arguments":{}}

execute_workflow

Execute a workflow: inline steps, a stored workflow name, a built-in template, or a natural-language brief (planned then executed). Steps run in order and each result is verified; stops at the first failure. background: true returns an executionId.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-zA-Z][\\w-]{0,40}$",
            "description": "Step id; later steps may reference its result as {{steps.<id>.data.<path>}}"
          },
          "tool": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "args": {
            "type": "object",
            "additionalProperties": {},
            "default": {}
          },
          "description": {
            "type": "string",
            "maxLength": 500
          },
          "continueOnError": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "tool"
        ],
        "additionalProperties": false
      },
      "maxItems": 200
    },
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "template": {
      "type": "string",
      "enum": [
        "portrait_retouch",
        "ecommerce_white",
        "photo_restoration",
        "cinematic_grade",
        "social_square"
      ]
    },
    "brief": {
      "type": "string",
      "maxLength": 4000
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024,
        "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
      },
      "maxItems": 20
    },
    "vars": {
      "type": "object",
      "additionalProperties": {},
      "default": {}
    },
    "background": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"execute_workflow","arguments":{}}

get_execution_status

Status of a workflow/batch execution (per-step states), or all recent executions when id is omitted.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_execution_status","arguments":{}}

cancel_execution

Cancel a running execution: no further steps/files start; the Photoshop command in flight finishes or is completes (ExtendScript cannot be interrupted).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

Example: {"name":"cancel_execution","arguments":{"id":"Example"}}

15. History & inspection

undo

Step backward in history (1-50 steps).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.undo
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "steps": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 1
    }
  },
  "additionalProperties": false
}

Example: {"name":"undo","arguments":{}}

redo

Step forward in history.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): ps.redo
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "steps": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 1
    }
  },
  "additionalProperties": false
}

Example: {"name":"redo","arguments":{}}

get_history

History states of the document and the current state index.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): ps.history
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_history","arguments":{}}

get_active_tool

The tool currently selected in the Photoshop toolbar.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): ps.activeTool
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"get_active_tool","arguments":{}}

get_document_state

Document info + selection + history position + selected layers in one call.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info, ps.history, layer.list
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_document_state","arguments":{}}

get_canvas_info

Canvas width, height, resolution, physical print size, mode and bit depth.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_canvas_info","arguments":{}}

get_selected_layers

Layers currently selected in the Layers panel.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): layer.list
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_selected_layers","arguments":{}}

get_selected_objects

Selected layers plus the active pixel selection bounds.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): layer.list, select.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_selected_objects","arguments":{}}

get_document_colors

Dominant colors of the composite (measured by Photoshop, quantized) with their share.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.colors
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "count": {
      "type": "integer",
      "minimum": 2,
      "maximum": 16,
      "default": 8
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_document_colors","arguments":{}}

inspect_document

Complete snapshot: document info, full layer tree, selection. Start here before editing.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info, layer.list, select.info
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"inspect_document","arguments":{}}

capture_preview

Render a JPEG/PNG preview of the composite (or one layer) and return it as an image so the AI can see the result.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): ps.preview
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "exclusiveMinimum": 0
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "maxSize": {
      "type": "integer",
      "minimum": 64,
      "maximum": 2048,
      "default": 1024
    },
    "format": {
      "type": "string",
      "enum": [
        "jpeg",
        "png"
      ],
      "default": "jpeg"
    }
  },
  "additionalProperties": false
}

Example: {"name":"capture_preview","arguments":{}}

validate_document

Pre-delivery checks: empty or missing-font text, empty/off-canvas/hidden layers.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): doc.info, layer.list
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    }
  },
  "additionalProperties": false
}

Example: {"name":"validate_document","arguments":{}}

16. Export & delivery

export_png

Export a PNG copy (keeps transparency).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "compression": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9,
      "default": 6
    },
    "interlaced": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_png","arguments":{"path":"designs/example.png"}}

export_jpeg

Export a JPEG copy (quality 0-12, flattened, no transparency).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "quality": {
      "type": "integer",
      "minimum": 0,
      "maximum": 12,
      "default": 10
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_jpeg","arguments":{"path":"designs/example.png"}}

export_webp

Export a WebP copy (Photoshop 23.2+).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "quality": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100,
      "default": 85
    },
    "lossless": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_webp","arguments":{"path":"designs/example.png"}}

export_tiff

Export a TIFF copy (layers kept).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "compression": {
      "type": "string",
      "enum": [
        "none",
        "lzw",
        "zip",
        "jpeg"
      ],
      "default": "lzw"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_tiff","arguments":{"path":"designs/example.png"}}

export_pdf

Export a Photoshop PDF copy.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "preserveEditing": {
      "type": "boolean",
      "default": false
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_pdf","arguments":{"path":"designs/example.png"}}

export_psd

Save a layered PSD copy (the open document keeps its own file).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_psd","arguments":{"path":"designs/example.png"}}

export_psb

Save a Large Document Format (PSB) copy.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_psb","arguments":{"path":"designs/example.png"}}

export_for_web

Web export: sRGB-flattened copy, longest side limited to maxSize, JPEG/PNG/WebP at a web quality.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.info, doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "format": {
      "type": "string",
      "enum": [
        "jpg",
        "png",
        "webp"
      ],
      "default": "jpg"
    },
    "maxSize": {
      "type": "integer",
      "minimum": 16,
      "maximum": 16000,
      "default": 2048
    },
    "quality": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_for_web","arguments":{"path":"designs/example.png"}}

optimize_image

Export JPEG/WebP under a target file size: tries decreasing quality (max 6 attempts) and reports each measured size.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "format": {
      "type": "string",
      "enum": [
        "jpg",
        "webp"
      ],
      "default": "jpg"
    },
    "maxKB": {
      "type": "number",
      "minimum": 5,
      "maximum": 100000
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    }
  },
  "required": [
    "path",
    "maxKB"
  ],
  "additionalProperties": false
}

Example: {"name":"optimize_image","arguments":{"path":"designs/example.png","maxKB":5}}

export_transparent_image

Export a transparent PNG (warns if a visible Background layer would make it opaque).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): layer.list, doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 300000
    }
  },
  "required": [
    "path"
  ],
  "additionalProperties": false
}

Example: {"name":"export_transparent_image","arguments":{"path":"designs/example.png"}}

export_multiple_sizes

Export several resized copies in one call (e.g. 1080, 720, 320 wide).

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "baseName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[\\w.-]+$"
    },
    "format": {
      "type": "string",
      "enum": [
        "psd",
        "psb",
        "png",
        "jpg",
        "tiff",
        "pdf",
        "webp",
        "gif",
        "bmp"
      ],
      "default": "png"
    },
    "sizes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "width": {
            "type": "integer",
            "minimum": 1
          },
          "height": {
            "type": "integer",
            "minimum": 1
          },
          "suffix": {
            "type": "string",
            "maxLength": 40,
            "pattern": "^[\\w.-]*$"
          }
        },
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 30
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    },
    "quality": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "folder",
    "baseName",
    "sizes"
  ],
  "additionalProperties": false
}

Example: {"name":"export_multiple_sizes","arguments":{"folder":"designs/example.png","baseName":"Example","sizes":[]}}

create_delivery_package

Deliverables folder: validates the document, saves PSD + requested formats/sizes, and writes manifest.json listing every file with byte sizes.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.info, layer.list, doc.saveAs
Input schema
{
  "type": "object",
  "properties": {
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "folder": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "File path inside an allowed directory (see ALLOWED_PATHS)"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "pattern": "^[\\w.-]+$"
    },
    "formats": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "png",
          "jpg",
          "webp",
          "tiff",
          "pdf"
        ]
      },
      "minItems": 1,
      "maxItems": 5,
      "default": [
        "png",
        "jpg"
      ]
    },
    "sizes": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 16,
        "maximum": 30000
      },
      "maxItems": 10,
      "default": [],
      "description": "Extra widths"
    },
    "includePsd": {
      "type": "boolean",
      "default": true
    },
    "overwrite": {
      "type": "boolean",
      "default": false,
      "description": "Replace an existing file (never silent; default false)"
    }
  },
  "required": [
    "folder",
    "name"
  ],
  "additionalProperties": false
}

Example: {"name":"create_delivery_package","arguments":{"folder":"designs/example.png","name":"Example"}}

17. AI design engine

list_templates

List professional design templates and supported styles.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"list_templates","arguments":{}}

plan_design

Turn a brief into a structured, validated design plan (JSON) WITHOUT touching Photoshop. Inspect or edit it, then call execute_design_plan.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "const": false,
      "default": false
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"plan_design","arguments":{"brief":"Example"}}

validate_design_plan

Validate a design plan against the schema plus semantic rules (layer references, palette references, alignment dependencies, contrast).

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "plan": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "plan"
  ],
  "additionalProperties": false
}

Example: {"name":"validate_design_plan","arguments":{"plan":{}}}

execute_design_plan

Execute a stored plan (planId) or an inline plan in Photoshop: creates a new document with layers and editable objects, verifies the result by inspection, and attaches a preview.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "planId": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    },
    "plan": {
      "type": "object",
      "additionalProperties": {}
    },
    "preview": {
      "type": "boolean",
      "default": true
    },
    "saveAs": {
      "type": "string"
    },
    "overwrite": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"execute_design_plan","arguments":{}}

get_design_plan

Return a stored design plan (latest version unless version is given), or list all plans when planId is omitted.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "planId": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_design_plan","arguments":{}}

compare_design_versions

Diff two versions of a stored plan: added/removed/changed elements, palette and document changes.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "planId": {
      "type": "string"
    },
    "from": {
      "type": "integer",
      "minimum": 1
    },
    "to": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "planId",
    "from",
    "to"
  ],
  "additionalProperties": false
}

Example: {"name":"compare_design_versions","arguments":{"planId":"Example","from":1,"to":1}}

generate_design

Full pipeline from a brief: analyze requirements (category, audience, style, size), plan hierarchy/palette/typography/layers, validate, build editable artwork in Photoshop, verify by inspection and return a preview.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    },
    "category": {
      "type": "string"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"generate_design","arguments":{"brief":"Example"}}

Create a minimalist logo lockup (mark, wordmark, tagline) as editable vectors. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_logo","arguments":{"brief":"Example"}}

create_poster

Create a poster with hero image area, headline hierarchy and footer CTA. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_poster","arguments":{"brief":"Example"}}

create_flyer

Create a flyer with color block, headline, offer list and CTA button. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_flyer","arguments":{"brief":"Example"}}

create_social_media_graphic

Create a social media graphic (default 1080×1080 px). Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_social_media_graphic","arguments":{"brief":"Example"}}

create_business_card

Create a business card front (85×55 mm, CMYK). Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_business_card","arguments":{"brief":"Example"}}

create_brand_identity

Create a brand identity board: logo lockup, palette swatches with hex labels, type specimens. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_brand_identity","arguments":{"brief":"Example"}}

create_packaging_design

Create a flat packaging layout with panels, dieline layer and front artwork. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_packaging_design","arguments":{"brief":"Example"}}

create_infographic

Create an infographic with numbered stat rows and bars. Pass copy.items as the data labels. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_infographic","arguments":{"brief":"Example"}}

create_icon_set

Create a consistent geometric icon set on shared keylines. Pass copy.items as icon labels. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_icon_set","arguments":{"brief":"Example"}}

create_vector_illustration

Create a layered flat vector illustration (landscape scene). Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_vector_illustration","arguments":{"brief":"Example"}}

create_editorial_layout

Create an editorial magazine page with kicker, title, deck, columns and pull quote. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_editorial_layout","arguments":{"brief":"Example"}}

create_app_screen

Create a mobile app screen (393×852-class frame) in auto layout with UI components: home/dashboard by default; the brief picks login/sign-up or settings screens. Pass copy.items for list rows. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_app_screen","arguments":{"brief":"Example"}}

create_landing_page

Create a desktop website landing page: navbar, hero with CTAs and visual, feature cards. Pass copy.items as feature titles. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_landing_page","arguments":{"brief":"Example"}}

create_web_dashboard

Create a web app dashboard: sidebar nav, header with search, KPI tiles, chart and activity list. Pass copy.items as nav labels. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_web_dashboard","arguments":{"brief":"Example"}}

create_ui_kit

Create a design-system sheet: color tokens, type scale, buttons, inputs, controls, cards, list rows — all themed by style/palette. Same options as generate_design.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": true,
      "description": "false = return the plan only"
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"create_ui_kit","arguments":{"brief":"Example"}}

revise_design

Apply targeted revisions to an executed plan without rebuilding: structured updates by element name, additions, removals, palette role changes, and simple instructions (“make the headline bigger”, “change background to navy”, “move logo up”). Unparsed instructions are reported, not guessed.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "planId": {
      "type": "string"
    },
    "instructions": {
      "type": "string",
      "maxLength": 2000
    },
    "updates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": true
      },
      "maxItems": 200
    },
    "add": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "maxItems": 200
    },
    "remove": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 200
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      }
    },
    "apply": {
      "type": "boolean",
      "default": true
    },
    "preview": {
      "type": "boolean",
      "default": true
    }
  },
  "required": [
    "planId"
  ],
  "additionalProperties": false
}

Example: {"name":"revise_design","arguments":{"planId":"Example"}}

analyze_composition

Analyze the active document from verified Photoshop properties: margins, alignment near-misses, spacing rhythm, type scale, hierarchy, contrast, overlap and visual balance. Returns a score and findings with suggested fixes. This is geometric analysis, not visual perception.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "artboard": {
      "type": "integer",
      "minimum": 0
    }
  },
  "additionalProperties": false
}

Example: {"name":"analyze_composition","arguments":{}}

critique_design

Critique the active design: verified property analysis plus an actual exported preview image attached for the AI client’s own visual assessment. The server does not perform image recognition; any visual judgement must come from the client viewing the attached image.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "artboard": {
      "type": "integer",
      "minimum": 0
    },
    "goals": {
      "type": "string",
      "maxLength": 1000,
      "description": "What the design should achieve"
    }
  },
  "additionalProperties": false
}

Example: {"name":"critique_design","arguments":{}}

improve_design

Apply the automatic fixes suggested by analyze_composition (margins, alignment snaps, contrast, minimum size, hierarchy) as targeted edits, then re-analyze and report before/after scores. Use dryRun to preview the changes.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "categories": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "alignment",
          "margins",
          "typography",
          "color",
          "hierarchy"
        ]
      }
    },
    "findingIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dryRun": {
      "type": "boolean",
      "default": false
    },
    "preview": {
      "type": "boolean",
      "default": true
    },
    "artboard": {
      "type": "integer",
      "minimum": 0
    }
  },
  "additionalProperties": false
}

Example: {"name":"improve_design","arguments":{}}

generate_design_variations

Generate N variations of a brief by changing one dimension each (style, palette harmony, or layout). Returns plans; with execute: true each is built as its own document with a preview.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Natural-language design brief. Quote exact copy, e.g. headline \"PURE BEAUTY\"."
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ]
    },
    "template": {
      "type": "string",
      "description": "Template id (see list_templates)"
    },
    "copy": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string",
          "maxLength": 300
        },
        "subheadline": {
          "type": "string",
          "maxLength": 500
        },
        "body": {
          "type": "string",
          "maxLength": 5000
        },
        "cta": {
          "type": "string",
          "maxLength": 100
        },
        "brand": {
          "type": "string",
          "maxLength": 100
        },
        "tagline": {
          "type": "string",
          "maxLength": 200
        },
        "contact": {
          "type": "string",
          "maxLength": 500
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "maxItems": 20
        }
      },
      "additionalProperties": false
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$",
      "description": "Derive the palette from this color"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles, e.g. {background:'#E9DDCC'}"
    },
    "size": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "units": {
          "type": "string",
          "enum": [
            "pt",
            "px",
            "mm",
            "cm",
            "in",
            "pc"
          ]
        }
      },
      "required": [
        "width",
        "height",
        "units"
      ],
      "additionalProperties": false
    },
    "colorMode": {
      "type": "string",
      "enum": [
        "RGB",
        "CMYK"
      ]
    },
    "imagePath": {
      "type": "string",
      "description": "Image to place (must be inside an allowed directory)"
    },
    "designSystem": {
      "type": "boolean",
      "description": "UI briefs: apply the UI/UX Pro Max product palette + font pairing matched from the brief (default: on unless style or baseColor is given)"
    },
    "execute": {
      "type": "boolean",
      "default": false
    },
    "preview": {
      "type": "boolean",
      "default": true,
      "description": "Export and attach a PNG preview after execution"
    },
    "saveAs": {
      "type": "string",
      "description": "Save the result as this .psd path"
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 6,
      "default": 3
    },
    "dimension": {
      "type": "string",
      "enum": [
        "style",
        "palette",
        "layout",
        "mixed"
      ],
      "default": "mixed"
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"generate_design_variations","arguments":{"brief":"Example"}}

18. UI design

search_design_knowledge

Search the UI/UX Pro Max design knowledge base (MIT, 192 product types, 89 styles, 74 font pairings, 120+ UX rules). Domains: product (Product types → recommended style, landing pattern, dashboard style, palette focus); color (Product-type color palettes (primary, secondary, accent, background, foreground, card, muted, border, destructive)); typography (Heading/body font pairings by mood); style (UI styles (glassmorphism, neumorphism, brutalism…) with colors, effects, best-for and do-not-use-for); reasoning (Per-product design reasoning: pattern, style priority, color/typography mood, anti-patterns); landing (Landing page patterns: section order, CTA placement, color strategy); ux (UX guidelines with do / don’t and severity); app-interface (Mobile app interface rules (accessibility, touch, navigation)); chart (Chart type recommendations per data type). Use it to ground style, color, type, layout and UX decisions before designing.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "enum": [
        "product",
        "color",
        "typography",
        "style",
        "reasoning",
        "landing",
        "ux",
        "app-interface",
        "chart"
      ]
    },
    "query": {
      "type": "string",
      "minLength": 2,
      "maxLength": 500,
      "description": "Keywords, e.g. \"fintech\", \"glassmorphism\", \"elegant serif\", \"touch target\""
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 5
    }
  },
  "required": [
    "domain",
    "query"
  ],
  "additionalProperties": false
}

Example: {"name":"search_design_knowledge","arguments":{"domain":"product","query":"Example"}}

recommend_design_system

Recommend a complete design system for a product brief using UI/UX Pro Max reasoning: matched product type, color palette mapped to palette roles (incl. AA-safe subtle/link/onPrimary), font pairing, UI style, landing-page pattern, key considerations and anti-patterns to avoid. Pass the result’s palette to create_ui_design or the design tools.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 3,
      "maxLength": 2000,
      "description": "e.g. \"telemedicine app for elderly patients\""
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

Example: {"name":"recommend_design_system","arguments":{"brief":"Example"}}

list_ui_components

List the UI component library (button, input, card, navbar, tab-bar, list-item, toggle, stat, chart…) with props, the auto-layout node reference, device frame presets and default design tokens. Read this before create_ui_design.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"list_ui_components","arguments":{}}

get_design_tokens

Design system for a style: color roles (incl. AA-safe ‘subtle’ text color), typography roles, spacing/radius/type-size tokens and control height. Use the token keys in auto-layout nodes.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ],
      "default": "modern"
    },
    "platform": {
      "type": "string",
      "enum": [
        "mobile",
        "web"
      ],
      "default": "mobile"
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      }
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_design_tokens","arguments":{}}

create_ui_design

Build a UI screen from an auto-layout tree (Figma-style frames: stacks with gap/padding/alignment, fill/hug sizing, components and design tokens). The server measures and positions everything, validates contrast, then builds editable artwork in Photoshop with a preview. Call list_ui_components first for the node and component reference. execute: false returns the computed plan only.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "default": "UI Screen"
    },
    "frame": {
      "type": "string",
      "enum": [
        "iphone-15",
        "iphone-se",
        "android",
        "ipad",
        "desktop",
        "laptop"
      ],
      "description": "Device preset; or give width/height"
    },
    "width": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "height": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "style": {
      "type": "string",
      "enum": [
        "minimalist",
        "luxury",
        "corporate",
        "editorial",
        "modern",
        "retro",
        "swiss",
        "brutalist",
        "geometric",
        "organic",
        "playful",
        "futuristic",
        "vintage",
        "wireframe",
        "contemporary"
      ],
      "default": "modern"
    },
    "product": {
      "type": "string",
      "maxLength": 500,
      "description": "Product/business description; applies the UI/UX Pro Max palette and font pairing for it (see recommend_design_system)"
    },
    "baseColor": {
      "type": "string",
      "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
    },
    "harmony": {
      "type": "string",
      "enum": [
        "monochrome",
        "analogous",
        "complementary",
        "triadic",
        "split-complementary"
      ]
    },
    "palette": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$"
      },
      "description": "Override palette roles"
    },
    "tokens": {
      "type": "object",
      "additionalProperties": {},
      "description": "Override design tokens (spacing, radius, fontSize, controlHeight)"
    },
    "layout": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "Auto-layout root nodes; usually one vertical stack with width/height 'fill'"
    },
    "elements": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "maxItems": 500,
      "description": "Extra absolutely-positioned plan elements drawn beneath the layout"
    },
    "execute": {
      "type": "boolean",
      "default": true
    },
    "preview": {
      "type": "boolean",
      "default": true
    },
    "saveAs": {
      "type": "string"
    }
  },
  "required": [
    "layout"
  ],
  "additionalProperties": false
}

Example: {"name":"create_ui_design","arguments":{"layout":[]}}

rename_layers_semantically

Rename generic objects ("", “Rectangle 3”, unnamed text) in the active document to meaningful names inferred from verified geometry and content, e.g. “Background”, “Header Bar”, “Button / Sign in”, “Heading / Pure Beauty”. dryRun returns suggestions only. Inspects top-level objects of each layer.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "artboard": {
      "type": "integer",
      "minimum": 0
    },
    "all": {
      "type": "boolean",
      "default": false,
      "description": "Also rename objects that already have custom names"
    },
    "dryRun": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}

Example: {"name":"rename_layers_semantically","arguments":{}}

19. Background jobs

get_job

Status of a background job (queued | running | succeeded | failed | cancelled). When it has succeeded, also returns the tool’s full result, including any preview image.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Id returned by a tool called with background: true"
    }
  },
  "required": [
    "jobId"
  ],
  "additionalProperties": false
}

Example: {"name":"get_job","arguments":{"jobId":"Example"}}

wait_for_job

Wait up to timeoutSeconds for a background job to finish, then return it as get_job does. If it is still running, call again; the job keeps going either way.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Id returned by a tool called with background: true"
    },
    "timeoutSeconds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 55,
      "default": 30
    }
  },
  "required": [
    "jobId"
  ],
  "additionalProperties": false
}

Example: {"name":"wait_for_job","arguments":{"jobId":"Example"}}

list_jobs

List recent background jobs, newest first (results omitted; use get_job).

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Example: {"name":"list_jobs","arguments":{}}

cancel_job

Cancel a queued background job. A job already running inside Photoshop cannot be interrupted; the result says so.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Id returned by a tool called with background: true"
    }
  },
  "required": [
    "jobId"
  ],
  "additionalProperties": false
}

Example: {"name":"cancel_job","arguments":{"jobId":"Example"}}

assets

search_images

Search images on Openverse, Wikimedia Commons, Unsplash, Pexels, Pixabay and Google Images by keywords, category, orientation, minimum size, file type, licence and colour. Returns normalized results with id, size, preview URL, creator and licence. No files are downloaded.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Keywords, e.g. 'mountain lake sunrise'"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openverse",
          "wikimedia",
          "unsplash",
          "pexels",
          "pixabay",
          "google"
        ]
      },
      "maxItems": 6,
      "description": "Providers to search. Default: every configured provider suited to the search. openverse and wikimedia need no key; unsplash/pexels/pixabay need UNSPLASH_ACCESS_KEY / PEXELS_API_KEY / PIXABAY_API_KEY; google needs SERPAPI_API_KEY (or GOOGLE_CSE_API_KEY + GOOGLE_CSE_ID). Google results are web images with UNVERIFIED licences"
    },
    "category": {
      "type": "string",
      "maxLength": 40,
      "description": "Category hint, e.g. nature, business, food, backgrounds, people, animals, buildings"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ]
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "fileType": {
      "type": "string",
      "pattern": "^[a-z,]+$",
      "maxLength": 40,
      "description": "Comma-separated file types: png, jpg, gif, webp, bmp, tiff, avif, heic, svg"
    },
    "license": {
      "type": "string",
      "enum": [
        "any",
        "commercial",
        "no-attribution"
      ],
      "default": "any",
      "description": "commercial: commercial use allowed; no-attribution: also no credit required"
    },
    "color": {
      "type": "string",
      "maxLength": 20,
      "description": "Dominant colour hint (provider support varies), e.g. blue or #3366ff"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 1
    },
    "kind": {
      "type": "string",
      "enum": [
        "photo",
        "illustration",
        "vector",
        "icon",
        "texture",
        "any"
      ],
      "default": "any"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Example: {"name":"search_images","arguments":{"query":"Example"}}

search_transparent_images

Search cut-outs and graphics likely to have transparency (PNG / SVG / WebP) — objects, overlays, elements for compositing. Providers only report the file type, so many PNGs are still opaque: after downloading, check the asset’s transparency field (“alpha” or “none”); for opaque photos on a plain background, import and run remove_background.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Keywords, e.g. 'mountain lake sunrise'"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openverse",
          "wikimedia",
          "unsplash",
          "pexels",
          "pixabay",
          "google"
        ]
      },
      "maxItems": 6,
      "description": "Providers to search. Default: every configured provider suited to the search. openverse and wikimedia need no key; unsplash/pexels/pixabay need UNSPLASH_ACCESS_KEY / PEXELS_API_KEY / PIXABAY_API_KEY; google needs SERPAPI_API_KEY (or GOOGLE_CSE_API_KEY + GOOGLE_CSE_ID). Google results are web images with UNVERIFIED licences"
    },
    "category": {
      "type": "string",
      "maxLength": 40,
      "description": "Category hint, e.g. nature, business, food, backgrounds, people, animals, buildings"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ]
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "fileType": {
      "type": "string",
      "pattern": "^[a-z,]+$",
      "maxLength": 40,
      "description": "Comma-separated file types: png, jpg, gif, webp, bmp, tiff, avif, heic, svg"
    },
    "license": {
      "type": "string",
      "enum": [
        "any",
        "commercial",
        "no-attribution"
      ],
      "default": "any",
      "description": "commercial: commercial use allowed; no-attribution: also no credit required"
    },
    "color": {
      "type": "string",
      "maxLength": 20,
      "description": "Dominant colour hint (provider support varies), e.g. blue or #3366ff"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 1
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Example: {"name":"search_transparent_images","arguments":{"query":"Example"}}

search_stock_photos

Search high-quality stock photographs (Unsplash, Pexels, Pixabay, Openverse photographs).

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Keywords, e.g. 'mountain lake sunrise'"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openverse",
          "wikimedia",
          "unsplash",
          "pexels",
          "pixabay",
          "google"
        ]
      },
      "maxItems": 6,
      "description": "Providers to search. Default: every configured provider suited to the search. openverse and wikimedia need no key; unsplash/pexels/pixabay need UNSPLASH_ACCESS_KEY / PEXELS_API_KEY / PIXABAY_API_KEY; google needs SERPAPI_API_KEY (or GOOGLE_CSE_API_KEY + GOOGLE_CSE_ID). Google results are web images with UNVERIFIED licences"
    },
    "category": {
      "type": "string",
      "maxLength": 40,
      "description": "Category hint, e.g. nature, business, food, backgrounds, people, animals, buildings"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ]
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "fileType": {
      "type": "string",
      "pattern": "^[a-z,]+$",
      "maxLength": 40,
      "description": "Comma-separated file types: png, jpg, gif, webp, bmp, tiff, avif, heic, svg"
    },
    "license": {
      "type": "string",
      "enum": [
        "any",
        "commercial",
        "no-attribution"
      ],
      "default": "any",
      "description": "commercial: commercial use allowed; no-attribution: also no credit required"
    },
    "color": {
      "type": "string",
      "maxLength": 20,
      "description": "Dominant colour hint (provider support varies), e.g. blue or #3366ff"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 1
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Example: {"name":"search_stock_photos","arguments":{"query":"Example"}}

search_icons

Search icons and simple vector symbols (SVG/PNG) from Openverse, Wikimedia Commons and Pixabay vectors.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Keywords, e.g. 'mountain lake sunrise'"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openverse",
          "wikimedia",
          "unsplash",
          "pexels",
          "pixabay",
          "google"
        ]
      },
      "maxItems": 6,
      "description": "Providers to search. Default: every configured provider suited to the search. openverse and wikimedia need no key; unsplash/pexels/pixabay need UNSPLASH_ACCESS_KEY / PEXELS_API_KEY / PIXABAY_API_KEY; google needs SERPAPI_API_KEY (or GOOGLE_CSE_API_KEY + GOOGLE_CSE_ID). Google results are web images with UNVERIFIED licences"
    },
    "category": {
      "type": "string",
      "maxLength": 40,
      "description": "Category hint, e.g. nature, business, food, backgrounds, people, animals, buildings"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ]
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "fileType": {
      "type": "string",
      "pattern": "^[a-z,]+$",
      "maxLength": 40,
      "description": "Comma-separated file types: png, jpg, gif, webp, bmp, tiff, avif, heic, svg"
    },
    "license": {
      "type": "string",
      "enum": [
        "any",
        "commercial",
        "no-attribution"
      ],
      "default": "any",
      "description": "commercial: commercial use allowed; no-attribution: also no credit required"
    },
    "color": {
      "type": "string",
      "maxLength": 20,
      "description": "Dominant colour hint (provider support varies), e.g. blue or #3366ff"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 1
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Example: {"name":"search_icons","arguments":{"query":"Example"}}

search_textures

Search textures and backgrounds (paper, grunge, wood, concrete, fabric, gradients…) for overlays and fills.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Keywords, e.g. 'mountain lake sunrise'"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openverse",
          "wikimedia",
          "unsplash",
          "pexels",
          "pixabay",
          "google"
        ]
      },
      "maxItems": 6,
      "description": "Providers to search. Default: every configured provider suited to the search. openverse and wikimedia need no key; unsplash/pexels/pixabay need UNSPLASH_ACCESS_KEY / PEXELS_API_KEY / PIXABAY_API_KEY; google needs SERPAPI_API_KEY (or GOOGLE_CSE_API_KEY + GOOGLE_CSE_ID). Google results are web images with UNVERIFIED licences"
    },
    "category": {
      "type": "string",
      "maxLength": 40,
      "description": "Category hint, e.g. nature, business, food, backgrounds, people, animals, buildings"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ]
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "fileType": {
      "type": "string",
      "pattern": "^[a-z,]+$",
      "maxLength": 40,
      "description": "Comma-separated file types: png, jpg, gif, webp, bmp, tiff, avif, heic, svg"
    },
    "license": {
      "type": "string",
      "enum": [
        "any",
        "commercial",
        "no-attribution"
      ],
      "default": "any",
      "description": "commercial: commercial use allowed; no-attribution: also no credit required"
    },
    "color": {
      "type": "string",
      "maxLength": 20,
      "description": "Dominant colour hint (provider support varies), e.g. blue or #3366ff"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 1
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Example: {"name":"search_textures","arguments":{"query":"Example"}}

get_image_details

Full details of a search result or downloaded asset: dimensions, file type, URLs, creator, licence, attribution text, tags and whether it is already downloaded.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Search id (provider:id) or assetId"
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

Example: {"name":"get_image_details","arguments":{"id":"Example"}}

filter_images

Filter search results seen in this session (or the given ids) by orientation, size range, file type, transparency, licence, provider or text; optionally sort by resolution.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 200
      },
      "maxItems": 500,
      "description": "Limit to these ids; default: all results seen this session"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait",
        "square"
      ]
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1
    },
    "maxWidth": {
      "type": "integer",
      "minimum": 1
    },
    "maxHeight": {
      "type": "integer",
      "minimum": 1
    },
    "fileTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 10
      },
      "maxItems": 10
    },
    "transparent": {
      "type": "boolean"
    },
    "license": {
      "type": "string",
      "enum": [
        "any",
        "commercial",
        "no-attribution"
      ],
      "default": "any",
      "description": "commercial: commercial use allowed; no-attribution: also no credit required"
    },
    "providers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openverse",
          "wikimedia",
          "unsplash",
          "pexels",
          "pixabay",
          "google"
        ]
      },
      "maxItems": 6,
      "description": "Providers to search. Default: every configured provider suited to the search. openverse and wikimedia need no key; unsplash/pexels/pixabay need UNSPLASH_ACCESS_KEY / PEXELS_API_KEY / PIXABAY_API_KEY; google needs SERPAPI_API_KEY (or GOOGLE_CSE_API_KEY + GOOGLE_CSE_ID). Google results are web images with UNVERIFIED licences"
    },
    "text": {
      "type": "string",
      "maxLength": 100
    },
    "sortBy": {
      "type": "string",
      "enum": [
        "none",
        "resolution",
        "width",
        "height"
      ],
      "default": "none"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 50
    }
  },
  "additionalProperties": false
}

Example: {"name":"filter_images","arguments":{}}

download_image

Download an image into the local asset library (ASSETS_DIR) from a search result id (approved provider hosts only) or a validated public http(s) URL. Checks MIME/magic bytes (PNG, JPEG, WebP, GIF, TIFF, AVIF, HEIC, safe SVG), size and dimensions, retries transient failures, generates a unique sanitized filename and records source URL, creator and licence. Optionally places or opens it in Photoshop.

  • Status: supported
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): image.place, doc.open
Input schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 200,
      "description": "Image id from a search result (provider:id); downloaded first if needed"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 4096,
      "description": "Direct image URL (validated, SSRF-checked); downloaded first"
    },
    "name": {
      "type": "string",
      "maxLength": 80,
      "description": "Base filename (sanitized); default from the title"
    },
    "subfolder": {
      "type": "string",
      "maxLength": 40,
      "description": "Folder inside the asset library (default: provider name)"
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1
    },
    "then": {
      "type": "string",
      "enum": [
        "none",
        "place",
        "open"
      ],
      "default": "none",
      "description": "After downloading: nothing, place as a layer in the active document, or open as a new document"
    },
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layerName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name (default: the asset's name)"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    },
    "width": {
      "type": "number",
      "minimum": 1
    },
    "height": {
      "type": "number",
      "minimum": 1
    },
    "fit": {
      "type": "string",
      "enum": [
        "contain",
        "cover",
        "stretch",
        "none"
      ],
      "default": "contain",
      "description": "How the image fills the x/y/width/height box"
    },
    "fitToCanvas": {
      "type": "boolean",
      "default": false,
      "description": "Fit the image to the whole canvas (uses fit for contain/cover/stretch)"
    },
    "rotation": {
      "type": "number",
      "minimum": -360,
      "maximum": 360,
      "description": "Degrees clockwise, applied after placing"
    },
    "scale": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000,
      "description": "Extra uniform scale in percent, applied after placing"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"download_image","arguments":{}}

download_multiple_images

Download several images (search ids and/or URLs) into the asset library. Continues past failures and reports each one.

  • Status: supported
  • Kind: external service
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 200,
            "description": "Image id from a search result (provider:id); downloaded first if needed"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 4096,
            "description": "Direct image URL (validated, SSRF-checked); downloaded first"
          },
          "name": {
            "type": "string",
            "maxLength": 80
          }
        },
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 50
    },
    "subfolder": {
      "type": "string",
      "maxLength": 40
    },
    "minWidth": {
      "type": "integer",
      "minimum": 1
    },
    "minHeight": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false
}

Example: {"name":"download_multiple_images","arguments":{"items":[]}}

import_image_to_photoshop

Import one image into Photoshop from a downloaded asset, a search id (auto-downloaded), a URL or a local path: place it as a named smart-object layer (position, size, fit, fit-to-canvas, rotation, scale, opacity) or open it as a new document.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): image.place, doc.open, doc.info, layer.transform, layer.props
Input schema
{
  "type": "object",
  "properties": {
    "assetId": {
      "type": "string",
      "maxLength": 100,
      "description": "Id of an already downloaded asset (asset_…), from download_image / get_downloaded_assets"
    },
    "id": {
      "type": "string",
      "maxLength": 200,
      "description": "Image id from a search result (provider:id); downloaded first if needed"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 4096,
      "description": "Direct image URL (validated, SSRF-checked); downloaded first"
    },
    "path": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024,
      "description": "Local image file inside the allowed directories"
    },
    "mode": {
      "type": "string",
      "enum": [
        "place",
        "open"
      ],
      "default": "place"
    },
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layerName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Layer name (default: the asset's name)"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "type": "number"
    },
    "width": {
      "type": "number",
      "minimum": 1
    },
    "height": {
      "type": "number",
      "minimum": 1
    },
    "fit": {
      "type": "string",
      "enum": [
        "contain",
        "cover",
        "stretch",
        "none"
      ],
      "default": "contain",
      "description": "How the image fills the x/y/width/height box"
    },
    "fitToCanvas": {
      "type": "boolean",
      "default": false,
      "description": "Fit the image to the whole canvas (uses fit for contain/cover/stretch)"
    },
    "rotation": {
      "type": "number",
      "minimum": -360,
      "maximum": 360,
      "description": "Degrees clockwise, applied after placing"
    },
    "scale": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000,
      "description": "Extra uniform scale in percent, applied after placing"
    },
    "opacity": {
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"import_image_to_photoshop","arguments":{}}

import_multiple_images

Import several images into one document, each as its own named layer. Optionally create the document first, arrange in a grid, stack them fitted to the canvas, or use per-image placement; optionally put them in a group.

  • Status: supported
  • Kind: write
  • Photoshop implementation (JSX bridge ops): doc.create, doc.info, image.place, layer.transform, layer.props, layer.group
Input schema
{
  "type": "object",
  "properties": {
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "maxLength": 100,
            "description": "Id of an already downloaded asset (asset_…), from download_image / get_downloaded_assets"
          },
          "id": {
            "type": "string",
            "maxLength": 200,
            "description": "Image id from a search result (provider:id); downloaded first if needed"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 4096,
            "description": "Direct image URL (validated, SSRF-checked); downloaded first"
          },
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024,
            "description": "Local image file inside the allowed directories"
          },
          "layerName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Layer name (default: the asset's name)"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "width": {
            "type": "number",
            "minimum": 1
          },
          "height": {
            "type": "number",
            "minimum": 1
          },
          "fit": {
            "type": "string",
            "enum": [
              "contain",
              "cover",
              "stretch",
              "none"
            ],
            "default": "contain",
            "description": "How the image fills the x/y/width/height box"
          },
          "fitToCanvas": {
            "type": "boolean",
            "default": false,
            "description": "Fit the image to the whole canvas (uses fit for contain/cover/stretch)"
          },
          "rotation": {
            "type": "number",
            "minimum": -360,
            "maximum": 360,
            "description": "Degrees clockwise, applied after placing"
          },
          "scale": {
            "type": "number",
            "minimum": 1,
            "maximum": 1000,
            "description": "Extra uniform scale in percent, applied after placing"
          },
          "opacity": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 50
    },
    "newDocument": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 255,
          "default": "Imported Assets"
        },
        "width": {
          "type": "integer",
          "minimum": 1,
          "maximum": 300000
        },
        "height": {
          "type": "integer",
          "minimum": 1,
          "maximum": 300000
        },
        "resolution": {
          "type": "number",
          "minimum": 1,
          "maximum": 10000,
          "default": 72
        },
        "background": {
          "type": "string",
          "enum": [
            "white",
            "black",
            "transparent"
          ],
          "default": "white"
        }
      },
      "required": [
        "width",
        "height"
      ],
      "additionalProperties": false
    },
    "doc": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "exclusiveMinimum": 0
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "required": [
            "name"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Document reference {id} or {name}. Omit to use the active document."
    },
    "layout": {
      "type": "string",
      "enum": [
        "none",
        "grid",
        "stack"
      ],
      "default": "none",
      "description": "none: per-image placement; grid: tile into a grid; stack: each fitted to the canvas"
    },
    "columns": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
    },
    "gap": {
      "type": "number",
      "minimum": 0,
      "maximum": 2000,
      "default": 20
    },
    "group": {
      "type": "string",
      "maxLength": 255,
      "description": "Put the imported layers into a group with this name"
    }
  },
  "required": [
    "images"
  ],
  "additionalProperties": false
}

Example: {"name":"import_multiple_images","arguments":{"images":[]}}

get_downloaded_assets

List images in the local asset library with file path, size, provider, creator and licence; filter by provider or text. includeCredits returns a ready-to-paste attribution block.

  • Status: supported
  • Kind: read-only
  • Photoshop implementation (JSX bridge ops): none (server-side)
Input schema
{
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "enum": [
        "openverse",
        "wikimedia",
        "unsplash",
        "pexels",
        "pixabay",
        "google",
        "url"
      ]
    },
    "text": {
      "type": "string",
      "maxLength": 100
    },
    "includeCredits": {
      "type": "boolean",
      "default": false
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "default": 100
    }
  },
  "additionalProperties": false
}

Example: {"name":"get_downloaded_assets","arguments":{}}

Edit this page on GitHub