data_merge
Merge data from a CSV or XML file into an InDesign document, with options to create new pages for each record and remove unused pages.
Instructions
Perform data merge operation
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": {
"dataSource": "<dataSource>"
},
"name": "data_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataSource | Yes | Path to data source file (CSV, XML, etc.) | |
| targetPage | No | Target page index | |
| createNewPages | No | Create new pages for each record | |
| removeUnusedPages | No | Remove unused pages after merge |