photoshop_import_datasets
Import a Photoshop variables/data-sets XML file into the active document to load data-driven graphic rows from an existing template with variable-bound layers.
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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml_path": "<xml_path>"
},
"name": "photoshop_import_datasets"
}
}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. |