Set card flag
set-card-flagApplies or clears Anki flag colors on up to 100 card IDs and verifies saved flags; missing cards block the selection, and write errors stop later writes.
Instructions
Applies one of Anki's supported flag colors and verifies saved flags without exposing arbitrary internal card fields. Missing Cards block the whole selection; a write error stops later writes and may leave partial progress.
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": {
"cardIds": "<cardIds>",
"flag": "<flag>"
},
"name": "set-card-flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | Anki flag color to apply, or none to remove the current flag | |
| cardIds | Yes | One to 100 Anki card IDs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | ||
| failedCardIds | Yes | ||
| missingCardIds | Yes | ||
| updatedCardIds | Yes | ||
| unchangedCardIds | Yes |