model_template_add
Add custom templates to Anki card models, enabling users to define Front and Back content for personalized study cards.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
modelName | Yes | Name of the model | |
template | Yes | Template object with Front and Back content |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"modelName": {
"description": "Name of the model",
"type": "string"
},
"template": {
"allOf": [
{
"properties": {
"Back": {
"description": "Back template content",
"type": "string"
},
"Front": {
"description": "Front template content",
"type": "string"
}
},
"required": [
"Front",
"Back"
],
"type": "object"
},
{
"additionalProperties": {
"type": "string"
},
"type": "object"
}
],
"description": "Template object with Front and Back content"
}
},
"required": [
"modelName",
"template"
],
"type": "object"
}