Get template
get_templateFetch a single template (library or caller-owned) by ID, including its full DSL source and sampleData. Mirrors GET /api/v1/templates/:id.
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": "get_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | Template ID — slug for library rows (e.g. 'invoice-classic') or UUID for user rows. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsl | Yes | The template's builder DSL source. | |
| name | Yes | Display name. | |
| tags | Yes | Tags for filtering. | |
| category | Yes | Document type (e.g. 'invoice'); null when uncategorised. | |
| createdAt | Yes | When the template was created, as a UTC 'YYYY-MM-DD HH:MM:SS' timestamp. | |
| updatedAt | Yes | When the template was last changed, as a UTC 'YYYY-MM-DD HH:MM:SS' timestamp. | |
| sampleData | Yes | Sample binding data stored with the template, or null. render_template without `data` uses the DSL's own `const sampleData`, not this. | |
| templateId | Yes | Template ID: a slug for library templates, a UUID for your own. | |
| description | Yes | One-sentence summary; empty when none is stored. | |
| ownerUserId | Yes | Owner's user ID, or null for a curated library template. |