notes.validate
notes_validateValidate note fields and duplicate scope before creating notes without acquiring media; content failures return issues.
Instructions
Validate note content and duplicate scope without acquiring media.
Semantic content failures return valid=false and issues; bad references or parameter types are RPC errors.
Anki-Connect method notes.validate. Scope: collection. Effect: read. Completion: completed. Undo: none.
Possible errors: collectionUnavailable, internalError, invalidParams, notFound, staleSession.
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": {
"note": "<note>"
},
"name": "notes_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Note to check, shaped like the `notes_create` arguments: {noteType, deck, fields, tags?, duplicates?}. | |
| 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. |