Download Template
download_templateRetrieve a stored template's original file by ID, or return its saved sample dataset as JSON when requested; text and images come inline, other files save to a temp path.
Instructions
Download a stored template's original file (DOCX, XLSX, HTML...), or with sample: true the sample dataset stored with it. Text and images come back inline; other files are saved to a temp file whose path is returned.
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>"
},
"name": "download_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample | No | If true, return the sample dataset stored at upload, as JSON, instead of the file; an error if there is none. | |
| outputPath | No | Local path to save the template file to, e.g. "~/out.pdf"; returns the path and size. Never overwrites a file. | |
| templateId | Yes | Template ID (its deployed version) or Version ID, from list_templates. | |
| asAttachment | No | If true, return a text or image file as a base64 attachment too. |