Undo Anki's current undoable action
undo-collection-actionPreview or explicitly confirm one native Anki Undo, then review the active profile before applying it. Use it only for manual actions, not automatic rollback of MCP changes.
Instructions
Preview or explicitly confirm a single native Undo. AnkiConnect cannot preview or select the undo entry; Undo can revert a manual action, not necessarily a change made through MCP. Never use it as automatic rollback. 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": "undo-collection-action"
}
}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 |