Photoshop Control
Use this skill when the user asks Codex to edit, build, inspect, export, or automate work in local Adobe Photoshop or Photoshop Beta.
Tools
Prefer the plugin MCP tools in this order:
photoshop_statusto verify Photoshop COM is reachable and to inspect the active document.photoshop_find_progidsif status fails or times out, because it checks Windows registration without launching Photoshop.photoshop_open_imageto open a specific local image path.photoshop_create_documentto start a new canvas with a known size, background, and resolution.photoshop_place_imageto place a local image as a new positioned layer.photoshop_add_text_layerfor editable title, caption, label, and annotation text.photoshop_layer_opsto list, select, rename, delete, show/hide, and style layers.photoshop_draw_pathsto create editable Photoshop paths from point data; usestroke: trueonly when a visible ink layer is needed.photoshop_adjust_imagefor resize, crop, brightness, contrast, mild sharpening, and export.photoshop_texture_recolorfor realistic local recolors that need to preserve folds, highlights, shadows, and feathered edges.photoshop_apply_overlayfor prepared transparent edit layers that must be positioned precisely.photoshop_batchfor repeatable multi-step workflows.photoshop_export_activeto save a copy of the active document.photoshop_run_jsxonly for edits that require Photoshop ExtendScript beyond the safer tools.
Operating Notes
- This is Windows-only and depends on Photoshop exposing a COM automation ProgID.
- The bridge tries
PHOTOSHOP_PROG_ID, thenPhotoshop.Application, recent versioned ProgIDs, andPhotoshop.Application.Beta. - If Photoshop Beta is installed but not registered for COM, ask the user for the correct ProgID or use Adobe-supported automation setup.
- Use absolute file paths for inputs and outputs.
- For destructive-looking requests, save to a new output path unless the user explicitly wants to overwrite.
- For object recoloring, avoid flat color overlays. Prefer
photoshop_texture_recolorwith a tight polygon mask around the object so Photoshop receives a generated layer that keeps the source texture. - Use
photoshop_apply_overlaywithblendMode: "NORMAL"for explicit visible prepared layers, andblendMode: "COLOR"only when preserving original luminosity is more important than color strength. - For line art that must remain editable, prefer
photoshop_draw_paths; it creates Photoshop path objects that can be edited with path/direct-selection tools. - For office-style repetitive work, compose a
photoshop_batchplan with document setup, layer creation, image placement, text labels, and export. - Verify exported files exist after edits when possible.
Example Requests
- "Open
C:\images\hero.pngin Photoshop and export a 1200px wide JPEG." - "Increase contrast on the active Photoshop document and save a PNG copy."
- "Create a 1080p social post, place this product photo, add editable Chinese headline text, and export JPEG."
- "Draw a Fuji mountain line-art scene as editable Photoshop paths, then add a visible ink layer."
- "List layers, hide the old background, rename the AI overlay, and export a PSD copy."
- "Run this JSX against the active Photoshop document."