Check and repair the active Anki database
check-collection-integrityPreview or confirm Anki's native Check Database operation to repair collection data and clear Undo history; preview reviews the proposal without running the check.
Instructions
Preview or explicitly confirm Anki's native Check Database operation. It can repair data and clear the Undo history; the preview does not check the database. Requires AnkiConnect v1.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check-collection-integrity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Review the active profile and proposal without running the operation. | |
| confirm | No | Set true only after the user approves the reviewed collection operation. | |
| confirmationToken | No | Short-lived, one-use token returned by this tool's preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| method | Yes | ||
| profile | Yes | ||
| warnings | Yes | ||
| operationId | Yes | ||
| includeMedia | Yes | Requested media option for sync; null for other operations. | |
| expiresInSeconds | Yes | ||
| confirmationToken | Yes |