generate_batch
Generate documents for multiple records in one call and receive a ZIP download URL. Each record costs credits based on output format: 1 credit for DOCX, 2 for PDF.
Instructions
Generate documents for multiple records in one call. Returns a ZIP download URL. Each record costs 1 credit (DOCX) or 2 credits (PDF).
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": {
"templateId": "<templateId>",
"records": "<records>"
},
"name": "generate_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | Template UUID | |
| records | Yes | Array of data objects, one per document. Each object's keys must match template variables. | |
| outputFormat | No | Output format: docx (1 credit each) or pdf (2 credits each) | docx |