Add note type field
add-note-type-fieldAdds an empty field to every note of a chosen note type, with dry-run preview by default and no card-template changes.
Instructions
Adds an empty field to every note of one note type. Defaults to dry-run mode and does not add the field to card templates.
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>",
"fieldName": "<fieldName>"
},
"name": "add-note-type-field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Optional zero-based field order. Use 0 for the first field; omit to append. | |
| dryRun | No | When true, validate and preview the field without modifying Anki | |
| fieldName | Yes | New field name. Anki special field names such as Tags, Type, Deck, Card, and FrontSide are not allowed. | |
| modelName | Yes | Anki note type name. AnkiConnect calls note types "models" in its API. | |
| expectedSchemaHash | No | Hash returned by get-note-type-schema; required when dryRun is false and blocks stale writes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| fields | Yes | ||
| applied | Yes | ||
| changed | Yes | ||
| modelName | Yes | ||
| addedField | Yes | ||
| validation | Yes | ||
| scopeWarning | Yes | ||
| previousFields | Yes | ||
| afterSchemaHash | Yes | SHA-256 hash of the ordered note-type field names | |
| beforeSchemaHash | Yes | SHA-256 hash of the ordered note-type field names |