Fill a Word template
documents_fill_templateA new Word file from a .docx template in the store, its {{ placeholders }} filled from data. Templates use Jinja: {{ name }}, {% if paid %}...{% endif %}, and {%tr for row in rows %} to repeat a table row. Turn the result into a PDF with documents_convert_to_pdf. Costs $0.02 per call; nothing if it fails.
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": {
"file_id": "<file_id>",
"data": "<data>"
},
"name": "documents_fill_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The values, e.g. {"customer": "Acme", "items": [{"name": "Combi steamer", "price": "€9,800"}]}. | |
| name | No | Name for the new file, e.g. "Quote 1042.pdf". | |
| file_id | Yes | A file in the store (files_upload or files_list give its file_id). | |
| link_hours | No |