photoshop_generate_from_datasets
Batch-export the active Photoshop document into one file per imported data set, applying each data set automatically. Create personalized variants or render every row to your output directory.
Instructions
Batch-export the active document once per data set: applies each data set, saves a copy, moves on. "Mail merge for images".
Users often say: generate all variants, batch personalize, render every row.
Use when: data sets are already imported (photoshop_import_datasets) and you want one file per row.
Returns: JSON { ok, summary, details: { exported, skipped, output_paths } }. Preconditions: active document with data sets. Side effects: writes files to output_dir.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format | JPEG |
| output_dir | Yes | Directory for generated files (created if missing) | |
| document_id | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. | |
| dataset_names | No | Subset of data set names to export (default: all) |