browser.select
browser_selectSelect cards or notes in an already open Anki Browser using card or note IDs; does not open a closed browser.
Instructions
Replace selection in an already open browser.
Exactly one selector. Note IDs select their cards in card mode; card IDs select their notes in note mode. This method does not open a closed browser.
Anki-Connect method browser.select. Scope: collection. Effect: gui. Completion: operation. Undo: none.
Long-running operation: by default the server waits for the final result (see waitForCompletion / timeoutSeconds).
Possible errors: collectionUnavailable, internalError, invalidParams, invalidState, notFound, staleSession.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardIds | No | Cards to select (decimal string, e.g. "1700000000001"). Give either this or `noteIds`. | |
| noteIds | No | Notes to select (decimal string, e.g. "1700000000001"). Give either this or `cardIds`. | |
| session | No | Optional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from. | |
| timeoutSeconds | No | MCP option (not sent to Anki): how long to wait for completion. A timeout does not cancel the work; the pending record is returned. | |
| waitForCompletion | No | MCP option (not sent to Anki): poll operations.get until the operation finishes and return its final record. If false, return the operation handle. |