photoshop_import_datasets
Load a Photoshop variables/data-sets XML file into the active document to fill variable-bound layers with data rows for data-driven graphics.
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 | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. |