model_createModel
Create custom note types in Anki by defining field names, card templates, and optional CSS. Use this tool to design tailored flashcard models for enhanced learning content.
Instructions
Creates a new model (note type). Returns the created model object.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cardTemplates | Yes | List of card template definitions. Each dict needs 'Name', 'Front', 'Back'. | |
css | No | Optional CSS for the model. | |
inOrderFields | Yes | List of field names in order. | |
isCloze | No | Set to true if this is a Cloze model. | |
modelId | No | Optional model ID to use. | |
modelName | Yes | The name for the new model. |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"cardTemplates": {
"description": "List of card template definitions. Each dict needs 'Name', 'Front', 'Back'.",
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Cardtemplates",
"type": "array"
},
"css": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional CSS for the model.",
"title": "Css"
},
"inOrderFields": {
"description": "List of field names in order.",
"items": {
"type": "string"
},
"title": "Inorderfields",
"type": "array"
},
"isCloze": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": false,
"description": "Set to true if this is a Cloze model.",
"title": "Iscloze"
},
"modelId": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional model ID to use.",
"title": "Modelid"
},
"modelName": {
"description": "The name for the new model.",
"title": "Modelname",
"type": "string"
}
},
"required": [
"modelName",
"inOrderFields",
"cardTemplates"
],
"type": "object"
}