Create note type
create-note-typeCreate a new Normal or Cloze note type from ordered fields, card templates, and shared CSS, with dry-run preview by default; no notes or cards are created.
Instructions
Creates a new Normal or Cloze note type from ordered fields, complete card templates, and shared CSS. Optionally selects its Browser sort field in AnkiConnect v1. Defaults to dry-run mode and does not create notes or cards.
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": {
"modelName": "<modelName>",
"fields": "<fields>",
"templates": "<templates>"
},
"name": "create-note-type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Shared CSS for every card generated from the note type | .card { font-family: arial; font-size: 20px; text-align: center; color: black; background-color: white; } |
| dryRun | No | When true, validate and preview the note type without creating it | |
| fields | Yes | Field names in their desired order. The first field is used for duplicate checks. | |
| isCloze | No | Whether to create an Anki Cloze note type | |
| modelName | Yes | Unique name for the new Anki note type | |
| sortField | No | Exact name from fields. Requires AnkiConnect v1. Omit to use Anki's default first field. | |
| templates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | Yes | ||
| dryRun | Yes | ||
| fields | Yes | ||
| created | Yes | ||
| isCloze | Yes | ||
| modelName | Yes | ||
| sortField | Yes | Proposed or verified Browser sort field; null in legacy mode. | |
| templates | Yes | ||
| designHash | Yes | SHA-256 hash of the current CSS and card templates | |
| schemaHash | Yes | SHA-256 hash of the ordered note-type field names | |
| validation | Yes | ||
| scopeWarning | Yes | ||
| createdNoteType | Yes |