photoshop_import_datasets
Import a Photoshop variables/data-sets XML file into the active document to load data-driven graphics rows.
Instructions
Import a Photoshop variables/data-sets XML file into the active document (the same file Image > Variables > Data Sets > Import accepts).
Users often say: load data sets, import variables XML, data-driven graphics.
Use when: the template PSD already has variable-bound layers and you want to load rows from an XML file. Do NOT use when: generating a batch from a CSV directly — use photoshop_recipe_csv_to_cards.
Returns: JSON { ok, summary, details: { count, datasets } }. Preconditions: active document with variables defined (Image > Variables > Define).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_path | Yes | Absolute path to the variables/data-sets XML file | |
| 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. |