Vorlage abrufen
template_getLiefert eine einzelne Vorlage mit Betreff- und Inhaltsvorlage, den Merge-Feldern und der empfohlenen Freigabe-Voreinstellung. Eine Blockvorlage liefert zusätzlich blocksTemplate und styleDefs; kopiert und angepasst speichert template_save sie als eigenen Entwurf. Die Gestaltungskette beginnt hier: template_get auf einer kuratierten Standardvorlage (template_list markiert sie mit curated: true), Änderungen an blocksTemplate, letter_preview rendert den Stand, template_save speichert ihn, template_preview zeigt die gespeicherte Version, template_release gibt sie frei. Mit versionId und dem Scope template:write lässt sich auch eine bestimmte Entwurfsversion lesen. Nächster Schritt: template_apply_with_merge_fields füllt die Platzhalter mit Werten. EN: Returns a single template with subject and content template, the merge fields and the recommended approval default. A block template also returns blocksTemplate and styleDefs; once copied and modified, template_save stores it as an own draft. The crafting chain starts here: template_get on a curated standard template (template_list marks them with curated: true), edits to blocksTemplate, letter_preview renders the state, template_save stores it, template_preview shows the stored version, template_release releases it. With versionId and the template:write scope a specific draft version can be read too. Next step: template_apply_with_merge_fields fills the placeholders with values.
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": "template_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reasoning | No | ||
| versionId | No | Optional: eine bestimmte Version, auch ein Entwurf. Braucht zusätzlich den Scope template:write. Ohne Angabe kommt die freigegebene Version. EN: Optional: one specific version, including a draft. Also requires the template:write scope. If omitted, the released version is returned. | |
| templateId | Yes |