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).
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>",
"document_id": "<document_id>"
},
"name": "photoshop_import_datasets"
}
}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. |