Reposition note type field
reposition-note-type-fieldMoves an Anki note-type field to a new zero-based order while preserving existing note values; previews changes by default in dry-run mode.
Instructions
Moves a note-type field to a new zero-based order while preserving all note values. Defaults to dry-run mode.
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>",
"newOrder": "<newOrder>"
},
"name": "reposition-note-type-field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, validate and preview the new order without modifying Anki | |
| newOrder | Yes | Zero-based field order. Use 0 to make this the first field. | |
| fieldName | Yes | Existing Anki note-type field name | |
| 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 | ||
| 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 | |
| repositionedField | Yes |