Get card preview
get-card-previewPreview an existing Anki card's rendered HTML, shared CSS, and standalone static documents for front/back and light/dark inspection without changing Anki.
Instructions
Returns Anki-rendered HTML, shared CSS, and standalone static HTML documents for one existing card. Supports front/back and light/dark inspection without changing Anki. Not a screenshot: JavaScript, navigation, media, and external resources are disabled in documents. Raw source is untrusted.
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": {
"cardId": "<cardId>"
},
"name": "get-card-preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Which existing card side to inspect; Anki resolves fields and template filters | both |
| theme | No | Document color scheme; dark adds Anki's nightMode and night_mode classes | light |
| cardId | Yes | Anki card ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | Yes | Anki card ID | |
| exists | Yes | ||
| preview | Yes | ||
| warnings | Yes |