Reposition note type template
reposition-note-type-templateMove a note type’s card template to a new zero-based order while preserving HTML and card history; preview changes with dry-run before applying.
Instructions
Moves one card template to a new zero-based order while preserving its HTML and existing card history. 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>",
"templateName": "<templateName>",
"newOrder": "<newOrder>"
},
"name": "reposition-note-type-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | When true, validate and preview the new order without modifying Anki | |
| newOrder | Yes | Zero-based card template order. Use 0 to make it the first template. | |
| modelName | Yes | Anki note type name. AnkiConnect calls note types "models" in its API. | |
| templateName | Yes | Anki card template name | |
| expectedDesignHash | No | Hash returned by get-note-type-design; required when dryRun is false and blocks stale writes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | Yes | ||
| applied | Yes | ||
| changed | Yes | ||
| modelName | Yes | ||
| templates | Yes | ||
| validation | Yes | ||
| scopeWarning | Yes | ||
| afterDesignHash | Yes | SHA-256 hash of the current CSS and card templates | |
| beforeDesignHash | Yes | SHA-256 hash of the current CSS and card templates | |
| previousTemplates | Yes | ||
| repositionedTemplate | Yes |