deckPresets.create
deckPresets_createCreates a new deck preset, optionally copying settings from an existing preset by ID or name or using Anki defaults.
Instructions
Create a preset by cloning a specified preset or native defaults.
Anki-Connect method deckPresets.create. Scope: collection. Effect: write. Completion: completed. Undo: single.
Possible errors: collectionUnavailable, conflict, editorConflict, internalError, invalidParams, notFound, staleSession.
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": {
"name": "<name>"
},
"name": "deckPresets_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new preset. | |
| session | No | Optional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from. | |
| cloneFrom | No | Preset to copy settings from: exactly one of {"id": "<presetId>"} or {"name": "<preset name>"}. Omit to start from Anki defaults. |