deckPresets.get
deckPresets_getRetrieves a deck options preset by ID or name, returning its typed settings for inspection or reuse. Use it to read preset details without changing the Anki collection.
Instructions
Read a typed preset.
Anki-Connect method deckPresets.get. Scope: collection. Effect: read. Completion: completed. Undo: none.
Possible errors: collectionUnavailable, 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": {
"preset": "<preset>"
},
"name": "deckPresets_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | Yes | Deck options preset: exactly one of {"id": "<presetId>"} or {"name": "<preset name>"}. | |
| 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. |