Delete note type field
delete-note-type-fieldPermanently deletes one field and all its values from every note of an Anki note type, requiring a dry-run impact review and explicit data-loss confirmation before applying.
Instructions
Permanently deletes one field and all of its values from every note of a note type. Requires a dry-run impact review, current schema hash, unchanged non-empty note count, and explicit data-loss confirmation.
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": "delete-note-type-field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, report the permanent data impact without modifying Anki | |
| fieldName | Yes | Existing Anki note-type field name | |
| modelName | Yes | Anki note type name. AnkiConnect calls note types "models" in its API. | |
| confirmDataLoss | No | Must be true when dryRun is false to confirm permanent deletion of this field's values | |
| expectedSchemaHash | No | Hash returned by get-note-type-schema; required when dryRun is false and blocks stale writes | |
| expectedNonEmptyNoteCount | No | Non-empty note count returned by the dry run; required when dryRun is false and blocks applying changed impact |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| fields | Yes | ||
| impact | Yes | ||
| applied | Yes | ||
| changed | Yes | ||
| modelName | Yes | ||
| validation | Yes | ||
| deletedField | 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 | |
| dataLossConfirmed | Yes | ||
| templateReferences | Yes |