Request cancellation of an Anki collection operation
cancel-collection-operationRequest cancellation of a running Anki sync, database check, or Undo by operation ID. Check status afterward; acknowledgement does not confirm completion or rollback.
Instructions
When the user asks to stop a sync, database check, or Undo, request cancellation of its operation ID from this running MCP server. Anki may refuse to stop a running operation. Acknowledgement is not completion or rollback; check get-collection-operation. Requires AnkiConnect v1.
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": {
"operationId": "<operationId>"
},
"name": "cancel-collection-operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operationId | Yes | Operation ID returned by a collection tool on this MCP server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| profile | Yes | ||
| requested | Yes | Whether Anki acknowledged the cancellation request, not whether it stopped. | |
| operationId | Yes | Operation ID returned by a collection tool on this MCP server. |