Manage note types
manage_modelsList, create, and modify Anki note types, including fields, card templates, and CSS, so you can keep flashcard structures aligned before adding note content.
Instructions
List and modify Anki note types (models): fields, card templates and CSS. Use list before creating notes to find a note type's exact field names (e.g. "Front"/"Back"); use manage_flashcards for note content.
Operations:
list: read-only; every note type with its ID and ordered field names.
create: needs modelName, fields (ordered names) and templates ([{ Front, Back }]); optional css, isCloze.
add_field: needs modelName, fieldName, fieldIndex.
remove_field: needs modelName, fieldName. Deletes that field's content from every note of this type (destructive).
rename_field: needs modelName, fieldName, newFieldName.
add_template: needs modelName, template ({ Front, Back }). Generates new cards for existing notes.
remove_template: needs modelName, templateName. Deletes the cards generated by that template (destructive).
update_styling: needs modelName, css. Replaces the note type's CSS.
All operations except list change the collection immediately and affect every note of that type.
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": {
"operation": "<operation>"
},
"name": "manage_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | create/update_styling: CSS for the card templates | |
| fields | No | create: field names in order | |
| isCloze | No | create: make a cloze deletion note type | |
| template | No | add_template: template to add, { Front, Back } HTML | |
| fieldName | No | add_field/remove_field/rename_field: field name (current name for rename) | |
| modelName | No | Note type name (all operations except list), e.g. "Basic" | |
| operation | Yes | Which operation to run; see the tool description for required parameters | |
| templates | No | create: card templates, e.g. [{ Front: "{{Front}}", Back: "{{FrontSide}}<hr id=answer>{{Back}}" }] | |
| fieldIndex | No | add_field: 0-based position for the new field | |
| newFieldName | No | rename_field: new field name | |
| templateName | No | remove_template: template name, e.g. "Card 1" |