Synchronize the active Anki collection
sync-collectionPreview or explicitly confirm syncing your Anki collection with its configured server, optionally including media, and return an operation ID for tracking.
Instructions
Preview or explicitly confirm a sync with Anki's configured server. A full sync may require the user to choose Upload or Download in Anki. Returns an operation ID, not completion. 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": "sync-collection"
}
}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. | |
| includeMedia | No | Request media sync, if enabled in the active profile. | |
| 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 |