dataMerge_selectDataSource
Select a CSV, TSV, or XML file as the data source for an InDesign data merge, optionally targeting a specific open document by name or index.
Instructions
Select a data source (CSV/TSV/XML) file for data merge
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": {
"filePath": "<filePath>"
},
"name": "dataMerge_selectDataSource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |