Fill a Word template into a new Word file
tarkle_fill_templatefileId is a Word (.docx) template with {placeholders}; values maps each placeholder name, exactly as written in the template, to text, or to a list of rows for a repeated block or table row (for example items: [{ item: "Setup", price: "100" }]). Every placeholder needs a value and every value a placeholder; otherwise the call is refused and names what is missing, unused and the template's own placeholders. name sets the new file's name (default " (filled).docx"). A NEW file is saved (the source or template is never changed) and its fileId is returned; a taken name is refused (NAME_TAKEN). The same generators and limits as the Tarkle chat and the API.
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": {
"workspaceId": "<workspaceId>",
"fileId": "<fileId>",
"values": "<values>"
},
"name": "tarkle_fill_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new file. When omitted, "<template name> (filled).docx". | |
| fileId | Yes | The Word (.docx) template, as a fileId from tarkle_list_files or tarkle_list_bin. | |
| values | Yes | Maps each placeholder name in the template, exactly as written there, to its text, or to a list of rows for a repeated block or table row. | |
| folderId | No | The folder for the new file; null for the library root; omit to keep the template's folder. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| workspaceId | Yes | The workspace's id from tarkle_list_workspaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| notes | No |