data_merge
Merge data from CSV or XML files into InDesign documents, with options to create new pages per record or clean up 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 |