data_merge
Fill an Illustrator template once per data row from CSV/JSON to generate variable certificates, labels, badges, or cards as artboards, grids, or exported files.
Instructions
Variable data (certificates, badges, labels, cards): fill a template once per data row. Template: the items on artboard (default 0) or refs. "{{field}}" inside any text is replaced, keeping its style. An item NAMED "{{field}}" takes the whole value: text → contents, linked image → relinked (file path, fit in its box), symbol → symbol name, shape → fill colour; NAMED "{{?field}}" → shown only if the value is non-empty (not 0/false/no). Data: data (.csv/.tsv/.json file; relative image paths resolve from its folder) or rows [{field: value}]; offset, limit. mode: "artboards" (default: one new artboard per row; columns, spacing) · "grid" (n-up: grid {cols, rows, dx, dy} copies per new artboard, the first where the template sits) · "files" (one export per row: export {format, path with {field}/{n} tokens, …export args}; the document is left unchanged). name: artboard name pattern (default "{n}"). remove_template:true deletes the template and its artboard at the end. dry_run:true → template fields vs data columns; nothing changes.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "data_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| grid | No | ||
| mode | No | ||
| name | No | ||
| refs | No | ||
| rows | No | ||
| limit | No | ||
| export | No | ||
| offset | No | ||
| columns | No | ||
| dry_run | No | ||
| spacing | No | ||
| artboard | No | ||
| remove_template | No |