/firefly-services:photoshop-api-actionsfrom firefly-services
Apply Photoshop actions, smart-object replacement, and document operations programmatically using the Adobe Photoshop API — running .atn action files, smart-object source replacement, text replacement, layer visibility toggles, and the input/output storage pattern. Use whenever the user mentions "Photoshop API", "smart object replacement", "smart-object", "apply action", "action runner", "image.adobe.io", ".atn file", "PSD automation", "layer replacement", "text layer update", or wants to drive Photoshop operations from a server without the desktop app. Encodes the production pattern for replacing smart-object content in template PSDs for high-volume campaign asset production.
Ships in firefly-services. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run Photoshop operations on the server. The Photoshop API exposes the same operation surface that the desktop app uses: action playback, smart-object replacement, text replacement, layer manipulation, and PSD rendering. Inputs and outputs are passed as storage references (pre-signed URLs you control).
This is the workhorse API for any campaign workflow that involves template PSDs — replace smart objects, swap text layers, render to JPEG/PNG, ship.
Use this skill when:
.atn) needs to run server-sideimage.adobe.ioDo NOT use this skill when:
lightroom-api-batchfirefly-generate-image-v3-asyncEvery Photoshop API call follows the same shape:
inputs: [{ href: "pre-signed-GET-url", storage: "external" }, ...]
options: { ...operation-specific }
outputs: [{ href: "pre-signed-PUT-url", storage: "external", type: "image/jpeg" }]
Adobe reads inputs from your pre-signed GET URLs, runs the operation, and writes results to your pre-signed PUT URLs. Adobe never holds your assets — you do.
Valid storage values are external, azure, and dropbox (there is no adobe storage type for these operations). Use external for your own pre-signed S3/GCS/blob URLs.
Output type values:
| MIME | Format |
|---|---|
image/jpeg | JPEG (most common output) |
image/png | PNG |
image/tiff | TIFF |
vnd.adobe.photoshop | PSD (preserves layers) |
The canonical template-driven workflow. A template PSD has named smart-object layers; replace each layer's contents with a new image and render the result.
curl --silent -X POST 'https://image.adobe.io/pie/psdService/smartObject' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": [{
"href": "'"$TEMPLATE_PSD_URL"'",
"storage": "external"
}],
"options": {
"layers": [{
"name": "hero-image",
"input": {
"href": "'"$NEW_HERO_IMAGE_URL"'",
"storage": "external"
}
}, {
"name": "background",
"input": {
"href": "'"$NEW_BACKGROUND_URL"'",
"storage": "external"
}
}]
},
"outputs": [{
"href": "'"$OUTPUT_JPEG_URL"'",
"storage": "external",
"type": "image/jpeg",
"overwrite": true,
"quality": 7
}]
}'
JPEG quality is an integer from 1 to 7, with 7 as the highest quality (and the default).
Response:
{
"_links": {
"self": {"href": "https://image.adobe.io/pie/psdService/status/<job-id>"}
}
}
Always poll the _links.self.href value returned by the submit call — do not construct the status URL yourself. (The status path is /pie/psdService/status/{jobId}, but treat the returned _links.self.href as authoritative.)
curl --silent "$STATUS_URL" \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID"
Status values: pending → running → succeeded | failed. Polling cadence 1-2s is appropriate.
Smart objects are addressed by name, not by position. The template PSD must have unique, predictable layer names. Brand-defined patterns:
| Pattern | Example |
|---|---|
<role>-<purpose> | hero-image, bg-photo, logo-overlay |
| Use kebab-case or snake_case, not spaces | |
| Unique within the PSD |
If two layers share a name, the API replaces both — sometimes desirable, often not. Audit templates before going live.
curl --silent -X POST 'https://image.adobe.io/pie/psdService/text' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": [{"href": "'"$TEMPLATE_PSD_URL"'", "storage": "external"}],
"options": {
"layers": [{
"name": "headline",
"text": {
"content": "Limited Edition"
}
}]
},
"outputs": [{"href": "'"$OUTPUT_JPEG_URL"'", "storage": "external", "type": "image/jpeg"}]
}'
Content replacement is the proven operation — live-verified 2026-08-11: setting options.layers[].text.content succeeded, and the rendered text keeps the font, size, color, position, and tracking defined in the template PSD.
Character-level styling via characterStyles is rejected by the current submission schema — live-verified 2026-08-11: both fontName and fontSize were rejected at submission with Additional property fontName is not allowed and Additional property fontSize is not allowed. Do not send characterStyles properties in the request.
The practical pattern: define all character styling (font, size, color, orientation) in the template PSD itself, and use the API for content replacement only. If a variant needs different styling, create a styled variant of the template.
Font availability is a document-level concern: options.manageMissingFonts governs what happens when the PSD references a font the service doesn't have (useDefault substitutes ArialMT; "fail" fails the job), and options.fonts supplies custom font files as storage refs. Keep template fonts on the supported list to avoid substitution surprises.
Run an existing .atn action file against an input image:
curl --silent -X POST 'https://image.adobe.io/pie/psdService/photoshopActions' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": [{"href": "'"$INPUT_IMAGE_URL"'", "storage": "external"}],
"options": {
"actions": [{
"href": "'"$ATN_FILE_URL"'",
"storage": "external",
"actionName": "my-brand-treatment"
}]
},
"outputs": [{"href": "'"$OUTPUT_URL"'", "storage": "external", "type": "image/jpeg"}]
}'
actionName identifies a specific action within the .atn file. Action files can contain many actions; pick the one to run.
Action files are produced in the desktop Photoshop app:
.atnThese are typically built by the customer's creative team and handed to the integration engineer as part of the asset library. Treat them as versioned assets.
For dynamic compositions where layers turn on/off based on campaign rules:
curl --silent -X POST 'https://image.adobe.io/pie/psdService/documentOperations' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": [{"href": "'"$PSD_URL"'", "storage": "external"}],
"options": {
"layers": [
{"edit": {}, "name": "promo-badge", "visible": true},
{"edit": {}, "name": "regular-price", "visible": false},
{"edit": {}, "name": "logo-light", "visible": false},
{"edit": {}, "name": "logo-dark", "visible": true}
]
},
"outputs": [{"href": "'"$OUTPUT_URL"'", "storage": "external", "type": "image/jpeg"}]
}'
Layer visibility toggles are cheap (no rendering of off layers) — use liberally for variant generation from a master template.
To know what layers exist in a template PSD before operating on it, fetch the manifest:
curl --silent -X POST 'https://image.adobe.io/pie/psdService/documentManifest' \
-H "Authorization: Bearer $FIREFLY_SERVICES_ACCESS_TOKEN" \
-H "X-API-Key: $FIREFLY_SERVICES_CLIENT_ID" \
-H 'Content-Type: application/json' \
-d '{
"inputs": [{"href": "'"$PSD_URL"'", "storage": "external"}]
}'
Response includes the full layer tree with names, kinds, visibility, smart-object flags. Use this to validate template integrity in CI before allowing a PSD into production.
Per campaign asset request:
1. Load campaign config (which template, which assets, which text)
2. Compose a documentOperations request (its layer objects accept both
smart-object input and text blocks, so one call covers the whole edit):
inputs = [template_psd]
options.layers = [
{edit: {}, name: "hero", input: {hero_image_url}},
{edit: {}, name: "logo", input: {brand_logo_url}},
{edit: {}, name: "headline", text: {campaign_headline}}
]
outputs = [{href: output_url, type: "image/jpeg"}]
3. Submit, poll, persist output
Note: the /smartObject endpoint's layer objects accept only input (no text property), so a single /smartObject call cannot also replace a text layer. Either combine everything in one POST /pie/psdService/documentOperations call as above, or make two calls — /smartObject for the image slots, then /text for the headline.
At enterprise campaign scale, this runs through SQS → Lambda. One template + one config = one rendered output. A full campaign run is the orchestration of this base operation thousands of times.
Templates are versioned by customer + use case + variant:
templates/
customer-a/
hero-banner-1920x1080.psd v3
square-card-1080x1080.psd v2
customer-b/
campaign-template-16x9.psd v1
campaign-template-1x1.psd v1
Each version's manifest (layer structure) is cached so requests can validate against the right shape before being submitted.
Before submitting a smart-object replacement, fetch the manifest and verify:
| Check | Why |
|---|---|
All options.layers[].name exist in the manifest | Avoid silent failures when a layer was renamed |
| Smart-object layers are flagged as smart objects | Plain layers can't accept smart-object replacement |
| Text layers are flagged as text | Same |
| Required system fonts are supported | See SupportedFonts.md |
This pre-flight catches most failures before the API call, where they would otherwise surface mid-pipeline.
A Photoshop API pipeline is production-ready when:
firefly-services-storage-refs)documentManifest and audit names.manageMissingFonts was left at its useDefault setting (ArialMT substitution). Set options.manageMissingFonts: "fail" to surface the error, or supply the font via options.fonts. See SupportedFonts.md.actionName field. Re-open the .atn in desktop Photoshop to find the exact name.running for >5 minutes: Most operations complete in 5-30 seconds. Long stalls usually indicate an issue with the input PSD (corruption, unsupported color mode). Cancel and resubmit with a known-good template.firefly-services-storage-refs — Input/output URL generationfirefly-services-auth — Token retrievalphotoshop-api-composition — Multi-layer composition workflowsfirefly-expand-fill — Generate fill content before compositing into PSDfirefly-services-rate-limits — Photoshop API has separate rate limits from FireflyWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub focus-gts/firefly-services-skills --plugin firefly-services19 skills in this plugin
/firefly-batch-pipelineThe end-to-end production reference architecture for high-volume generative campaign workloads on Adobe Firefly Services — SQS-fronted intake, Lambda worker pool with per-credential token-bucket pacing, Step Functions orchestration for multi-stage PSD composition, DynamoDB job state, S3 result persistence, DLQ replay, and webhook-driven customer notification. Use whenever the user mentions "batch pipeline", "campaign at scale", "thousands of images per day", "generative pipeline", "campaign assembler", "asset factory", "production-grade pipeline", or designs a system that combines Firefly generation with Photoshop composition at volume. Stitches `firefly-services-rate-limits` and `photoshop-api-composition` into a single deployable blueprint./firefly-brand-guardrailsEnforce brand compliance on generative output — custom-model lock-in, prompt and output content filtering, asset tagging for downstream policy, and the human-review queue pattern for regulated or brand-sensitive workloads. Use whenever the user mentions "brand compliance", "brand safety", "regulated industry", "review queue", "approval workflow", "content moderation", "brand guardrails", "legal review", "compliance hold", or generates assets for financial services, pharma, automotive, public sector, or any customer with a brand-review process. Encodes the production guardrail pattern that turns "Firefly generates whatever it wants" into "every asset that ships passes a documented compliance gate."Other plugins' skills for the same job