create_model
Build custom Anki flashcards by defining model names, field order, card templates, CSS, and cloze type using the create_model tool in Anki MCP.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cardTemplates | Yes | Array of card templates with Front and Back content | |
css | No | Custom CSS styling for the model | |
inOrderFields | Yes | Array of field names in order | |
isCloze | No | Whether the model should be a cloze type | |
modelName | Yes | Name of the model to create |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cardTemplates": {
"description": "Array of card templates with Front and Back content",
"items": {
"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"
}
]
},
"type": "array"
},
"css": {
"description": "Custom CSS styling for the model",
"type": "string"
},
"inOrderFields": {
"description": "Array of field names in order",
"items": {
"type": "string"
},
"type": "array"
},
"isCloze": {
"description": "Whether the model should be a cloze type",
"type": "boolean"
},
"modelName": {
"description": "Name of the model to create",
"type": "string"
}
},
"required": [
"modelName",
"inOrderFields",
"cardTemplates"
],
"type": "object"
}