photoshop-uxp-bridge/index.js. Alias forms (for example layer.rename, doc.open) map to the same handlers.
For argument-level docs and copy/paste payloads for every operation, see Operation arguments and examples.
Documents
createDocumentopenDocumentduplicateDocumentsaveDocumentsaveDocumentAscloseDocumentresizeImageresizeCanvascropDocumenttrimDocumentrotateDocumentflattenDocument(flattenImagealias)mergeVisible
Layers and grouping
createLayercreatePixelLayercreateGroupgroupLayersungroupLayerdeleteLayerrenameLayerduplicateLayerselectLayerselectLayersmoveLayer(reorderLayeralias)setLayerVisibilityshowLayerhideLayersetLayerOpacitysetBlendModesetLayerPropsbringLayerToFrontsendLayerToBackmergeLayer(mergeLayersalias)rasterizeLayerlinkLayersunlinkLayer
Transform and layout
transformLayeralignLayersdistributeLayerstranslateLayerscaleLayerrotateLayerflipLayerskewLayer
Assets and smart objects
Selection and masks
selectAlldeselectinverseSelection(invertSelectionalias)featherSelectionexpandSelectioncontractSelectiongrowSelectionsmoothSelectionselectRectangleselectEllipseselectPolygonselectLayerPixelssetSelectionmodifySelectioncreateLayerMask(addLayerMaskalias)deleteLayerMask(removeLayerMaskalias)applyLayerMask
Text and shapes
setTextStyle supports text, fontSize, fontName/font, position, bounds fitting (maxWidth, maxHeight, minFontSize, hardMinFontSize), overflow handling (overflow: "resize" | "clip", ellipsis), and overlap avoidance (avoidOverlapWith, overlapGap).
Adjustments and filters
Export and low-level actions
Known behavior notes
- BatchPlay errors are inspected for embedded descriptor errors and surfaced with indexed failure detail.
- Layer-targeted export may use Photoshop-controlled filenames depending on command path.
- Document save without output can skip to avoid Save As dialogs when no existing path is present.