register_template
Register custom HTML templates at runtime for immediate use with render_page and preview_html.
Instructions
Register a custom template at runtime for immediate use with render_page/preview_html
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": {
"name": "<name>",
"description": "<description>",
"html_template": "<html_template>"
},
"name": "register_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Built-in CSS for the template | |
| name | Yes | Template name (alphanumeric, hyphens, underscores allowed) | |
| category | No | Template category | custom |
| description | Yes | Template description | |
| html_template | Yes | doT.js HTML template string with {{=it.content}} placeholder |