You’re reading the ZotLit v2 beta docs. Still on v1? Read the v1 docs

ZotLit

Protocol links

Every obsidian://zotlit/* action, its parameters, and usage for scripting workflows.

This page documents every obsidian://zotlit/* protocol action. These deep links allow external tools (the ZotLit companion, scripts, launchers) to trigger ZotLit operations in Obsidian.

Common parameters

Every protocol link requires a source-id parameter: an 8-character hex string identifying the Zotero install that generated the link. ZotLit rejects links whose source-id does not match the connected database, showing:

This link was created by a different Zotero install.

If the Zotero database is not yet loaded, ZotLit shows:

Open the Zotero database to handle this link.

Actions

open

Opens the existing literature note for a Zotero item, or creates one if none exists.

obsidian://zotlit/open?item=<id>&source-id=<hash>
ParameterTypeRequiredDescription
itemIntegerYesZotero item ID
source-id8-char hexYesZotero install identifier

update

Re-renders a literature note from the current Zotero data.

obsidian://zotlit/update?item=<id>&source-id=<hash>
ParameterTypeRequiredDescription
itemIntegerYesZotero item ID
source-id8-char hexYesZotero install identifier
scopefull or metadataNoWhat to update. Default: full (frontmatter + managed body region). metadata updates frontmatter only.

update-many

Batch-updates multiple literature notes. Opens an interactive confirm/progress modal.

obsidian://zotlit/update-many?items=<id,id,...>&source-id=<hash>
ParameterTypeRequiredDescription
itemsComma-separated integersYesZotero item IDs (deduplicated; trailing comma tolerated)
source-id8-char hexYesZotero install identifier
scopefull or metadataNoDefault: full

For batches too large for a URL, ZotLit also exposes PUT {host} /literature-notes with the same parameters in the request body, gated by a source-id header.


import-note

Imports a single Zotero note (or child notes from an item) into the vault.

obsidian://zotlit/import-note?item=<id>&mode=<mode>&source-id=<hash>
ParameterTypeRequiredDescription
itemIntegerYesZotero item ID
modenote or childYesnote imports a standalone note; child imports child notes of a parent item
source-id8-char hexYesZotero install identifier

import-notes

Batch-imports multiple Zotero notes.

obsidian://zotlit/import-notes?items=<id,id,...>&mode=<mode>&source-id=<hash>
ParameterTypeRequiredDescription
itemsComma-separated integersYesZotero item IDs (deduplicated; trailing comma tolerated)
modenote or childYesImport mode
source-id8-char hexYesZotero install identifier

For batches too large for a URL, ZotLit also exposes PUT {host}/zotero-notes with the same parameters in the request body, gated by a source-id header.


explore

Opens the Template Data Explorer anchored on a specific item.

obsidian://zotlit/explore?item=<id>&source-id=<hash>
ParameterTypeRequiredDescription
itemIntegerYesZotero item ID
source-id8-char hexYesZotero install identifier
annotation8-char keyNoZotero annotation key (charset: 23456789A-NP-Z). When provided, the explorer focuses on this annotation.

Action summary

ActionSingle itemBatchScope paramMode param
openyes
updateyesyes
update-manyyesyes
import-noteyesyes
import-notesyesyes
exploreyes

See also

On this page