Save template
save_templateSave a user-owned DSL template so it can be rendered later by ID. Validates the DSL with the catalog before persisting. Free (no credits). Optional sampleData (any JSON value) is stored with the template and returned whenever the template is fetched, preserving the template's binding shape. Optional description is a one-sentence summary surfaced on /templates. Returns { templateId, name, createdAt }.
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": {
"dsl": "<dsl>",
"name": "<name>"
},
"name": "save_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsl | Yes | The builder DSL script to store. It is validated before saving. Up to 512KB. | |
| name | Yes | Display name shown in list_templates results and on the /templates page. | |
| sampleData | No | Optional JSON binding data to persist alongside the template. Returned by get_template. | |
| description | No | One-sentence summary of what the template is for. Shown on /templates list rows and matched by list_templates `q`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The display name as saved. | |
| createdAt | Yes | When the template was created, as a UTC 'YYYY-MM-DD HH:MM:SS' timestamp. | |
| templateId | Yes | UUID of the new template. |