Commands
Every ZotLit command, its entry points, and its Obsidian CLI parameters.
This reference lists every ZotLit command, its entry points, availability, and Obsidian CLI parameters.
ZotLit is a desktop-only plugin. These commands are not available on Obsidian Mobile.
Database
ZotLit: Refresh Zotero databaseReloads the Zotero database from disk. Use this after making changes in Zotero when automatic watching is disabled.
| Entry point | Details |
|---|---|
| Command palette | Always available |
Library-wide update
ZotLit: Create or update all literature notesCreates or updates a literature note for every item in every library of your library scope. Opens the same batch confirmation modal as a multi-item update from Zotero.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Zotero | Right-click a library or collection > ZotLit > Create or Update Literature Notes |
The Zotero entry scopes the batch to the row you right-click: a library covers every item in it, a collection covers that collection and its subcollections. That target is exact, so it runs whether or not the row is in your library scope.
Library-wide note import
ZotLit: Import all child and standalone notesImports all child notes attached to regular items and all standalone notes in every library of your library scope. Opens the same batch confirmation modal as a multi-note import from Zotero.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Zotero | Right-click a library or collection > ZotLit > Import Child and Standalone Notes |
The Zotero entry scopes the import to the row you right-click, subcollections included. That target is exact, so it runs whether or not the row is in your library scope.
Library View
ZotLit: Open Zotero libraryOpens the Library View, a tab titled Zotero library that lists your Zotero library, and puts the cursor in its search box. If the tab is already open, the command brings it forward. See Browse your library in the Library View.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Ribbon | The ZotLit icon |
| Quick switcher | Alt+Enter (Option+Enter on macOS) on a result opens the view on that item. See below. |
| Automatic | Opens once on a new install and once after a v1-to-v2 upgrade, with the setup banner above it |
A selected row in the view answers the quick switcher's chords below, and its right-click menu lists every action on the item. See Open, write, and cite from a row.
Literature note quick switcher
ZotLit: Open literature note quick switcherOpens a modal to search every library in your library scope and jump to (or create) the corresponding literature note.
| Entry point | Details |
|---|---|
| Command palette | Always available |
A result takes five chords, listed along the bottom of the modal:
| Chord | Result |
|---|---|
Enter | Opens the literature note, creating it first when none exists. |
Ctrl+Enter (Cmd+Enter on macOS) | The same, in a new pane. |
Shift+Enter | Opens the item's PDF in Obsidian's PDF reader, without the note. |
Ctrl+Shift+Enter (Cmd+Shift+Enter on macOS) | The same, in a new pane. |
Alt+Enter (Option+Enter on macOS) | Shows the item in the Library View. |
Alt+Enter opens the Library View on the item's first collection, or on its library when the item is in no collection, and selects its row. It clears the view's search and turns off its reading-state filters, so nothing hides the row. When the item falls beyond the view's limit of 1,000 papers, nothing is selected and a notice says so.
The two PDF chords run Open PDF on the selected result, listed under Literature note actions.
Citations
ZotLit: Insert Markdown citationOpens a modal to search every library in your library scope and insert a Markdown citation at the cursor.
Insertion remains available independently of Pandoc citations, Wikilink citations, Show formatted citations, and Open citations as links.
| Entry point | Details |
|---|---|
| Command palette | Active when an editor is open |
| Editor suggester | Triggered by typing [@ in the editor, or @ at a word boundary when @ trigger is on. Both settings are under Settings > ZotLit > Citations. |
Citation navigation
The following commands open the recognized Pandoc citation under the cursor. They have no default hotkeys.
| Entry point | Details |
|---|---|
| Command palette | Active while Pandoc citations and Open citations as links are on, with the cursor on a recognized citation key |
| Hotkey | None by default; assign one under Settings > Hotkeys |
Opens or creates the Literature Note in the current tab.
ZotLit: Open citation key under cursor in new tabOpens or creates the Literature Note in a new tab.
ZotLit: Open citation key under cursor to the rightOpens or creates the Literature Note in a split to the right.
ZotLit: Open citation key under cursor in new windowOpens or creates the Literature Note in a new window.
References and export
ZotLit: Open referencesOpens the References Sidebar for the active note.
| Entry point | Details |
|---|---|
| Command palette | Always available |
Opens the Cited by Sidebar, which lists the notes in your vault that cite the active literature note. Each result is grouped by source file and links to the citation inside it. The sidebar follows the active note, so it asks for a literature note before it shows results.
| Entry point | Details |
|---|---|
| Command palette | Always available |
Opens a modal that sets the citation and references style and the document language of the active Markdown note. Confirming writes the zotlit-csl and lang properties of that note together. Choosing the vault style or the language reset removes the matching property.
| Entry point | Details |
|---|---|
| Command palette | Active on a Markdown note |
| More options | The note's More options menu (⋮) |
Opens the built-in export modal for the active Markdown note. The command requires the Pandoc engine when you run it.
The export uses its own citation membership. Citation source, presentation, and navigation settings do not change exported content.
| Entry point | Details |
|---|---|
| Command palette | Active on a Markdown note |
Citation text
ZotLit: Customize citation textOpens the citation text in the Template Workbench View. When the vault holds no citation document, the command creates zotlit-citation.md from the built-in citation text first.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Settings | The Open citation text button on the Citation text row at Settings > ZotLit > Citations |
| Template Workbench View | The pane menu's Open citation text item |
Graph view
ZotLit: Open citation graphOpens Obsidian's graph view with the Citation Graph preset applied, where Obsidian's own Open graph view opens it: the tab you are in, or the new tab, split, or window a modifier-held invocation asks for. See Explore citations in the graph view for what the preset sets.
| Entry point | Details |
|---|---|
| Command palette | Always available |
Opens a local Citation Graph for the active note in a vertical split, grouped to the pane it was opened from so the graph follows that pane's file.
| Entry point | Details |
|---|---|
| Command palette | Active on a note |
Neither command has a default hotkey. Where a Citation Graph cannot be opened, the command shows a notice naming the one thing to put right: the Graph view core plugin, the Show citations in graph view setting, or Citation Graph availability.
Literature note actions
The following commands operate on a literature note: the file currently open in the editor must be a ZotLit literature note. They also appear in the file menu (right-click the tab or use the file menu icon) under the zotlit section. The Template Workbench view and the Note preview view raise the same zotlit section in their pane menus, and the Note preview view adds two more: zotlit-preview, for the choices that shape the preview, and zotlit-display, for the display toggles.
ZotLit: Update literature noteRe-renders the full literature note (frontmatter and managed body region) from the current Zotero data.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
| File menu | yes |
Re-renders only the frontmatter of the literature note from the current Zotero data. Body content is unchanged.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
| File menu | yes |
Destructively replaces the entire literature note with a fresh render. A confirmation modal appears before proceeding.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
| File menu | yes |
Imports the Zotero notes attached to the current item into the vault.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
| File menu | yes |
Copies the note's Zotero key to the clipboard.
| Entry point | Details |
|---|---|
| Command palette | Active on a file with a Zotero key |
| File menu | Label: Copy item key. Single file only. |
Opens the profile document that the note resolves against in the Template Workbench View. A note with no profile stamp resolves against the Default profile. A profile the vault cannot resolve shows a notice instead. See Profiles for what a profile decides.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
| File menu | Label: Customize this note's template. Appears on a literature note. |
Opens the profile picker for the note, then asks for consent before writing anything. The switch re-renders the note with the chosen profile. The dialog also offers to move the note into that profile's folder. The checkbox names the folder the note moves into, for example Move to books/2024/. The move keeps the subfolders the note has under its current profile's folder: literatures/2024/Smith2020.md moves to books/2024/Smith2020.md. A note outside its profile's folder, or a note whose profile ZotLit does not recognize, moves by its file name alone.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
Opens the item's PDF attachment in Obsidian's own PDF reader, whether the file sits inside your vault or in Zotero's storage folder. One PDF opens straight away; several open a picker whose search box reads Select a PDF to open.
Only PDF attachments are offered. An item with none shows This item has no PDF attachment. A PDF whose file is no longer on disk shows The PDF file is missing. Neither case falls back to Zotero's own reader. See Open an item's PDF in Obsidian.
| Entry point | Details |
|---|---|
| Command palette | Active on a literature note |
| File menu | yes |
| Quick switcher | Shift+Enter on a result. See Literature note quick switcher. |
| Zotero | Right-click a PDF attachment, or an item that has one > Open PDF in Obsidian in the top-level menu |
| Zotero reader | Right-click inside the PDF you are reading > Open PDF in Obsidian |
| Annotation view | Pane menu > Open PDF. Absent when an Obsidian PDF view already shows the attachment. |
| File link | Click a link to a PDF in your Zotero library, when Open PDF file links in Obsidian is on |
Imported note actions
ZotLit: Update imported note from ZoteroRe-imports a Zotero note that was previously imported. A confirmation modal appears before overwriting.
| Entry point | Details |
|---|---|
| Command palette | Active on an imported note (file has a Zotero note key) |
| File menu | yes |
Annotations
ZotLit: Open Zotero annotationsOpens the annotation view in the right sidebar, or brings it forward when it is already open. The view keeps the follow mode you last chose. A new view starts in Active tab.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Ribbon | yes (tooltip: "Open Zotero annotations") |
These five change what the annotation view follows. Each acts on the open annotation view, and the command palette offers it only where it applies — so the mode the view already follows, and a pin with no item to take, are absent rather than inert. See Use the annotation view.
| Entry point | Details |
|---|---|
| Command palette | Active with an annotation view open, where the mode applies |
| Pane menu | The same three switches, plus the item picker |
Undo takes back the last annotation change ZotLit saved to Zotero for the PDF you have open. Redo applies an undone change again. The command palette offers each one only where there is a step to take that way. See Undo and redo a change.
| Entry point | Details |
|---|---|
| Command palette | Active in a PDF view of a Zotero attachment, or in the annotation view, when there is a step to take |
| More options | The PDF view's More options menu (⋮). Both entries appear, dimmed when there is no step to take. |
| Hotkey | None by default; assign one under Settings > Hotkeys |
Query files
ZotLit: Create new query fileCreates a query file named Untitled.zotquery and opens it in a tab. The file has two views. The default view, Items, is a Table of the papers in your whole library, newest first by date modified, with a limit of 100 rows. The second view, Annotations, shows the annotations of your whole library, grouped by paper, with a limit of 100 rows. See Use query files and query blocks.
| Entry point | Details |
|---|---|
| Command palette | Always available. The file goes in the folder for new notes. |
| File explorer | Right-click a folder, or a file in it > New query file. The file goes in that folder. Hold Ctrl (Windows and Linux) or Command (macOS) to open it in a new tab. |
Save as query file… in the annotation view's More options menu also creates a query file. See Save the annotation sidebar as a query file. The Library View's view menu has the same entry. See Save the view as a query file.
Template data explorer
ZotLit: Open template data explorerOpens the template data explorer, showing the full data object available to templates for the current item.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| File menu | Label: Explore template data. Appears on files that carry an item key. |
Templates and profiles
These commands open profile documents in the Template Workbench and import a profile that someone shared with you. Two of them are palette entries labelled Open template workbench. One opens the profile document you are editing; the other brings the Workbench forward from inside the view.
ZotLit: Open template workbenchOpens the active profile document in the Template Workbench View.
| Entry point | Details |
|---|---|
| Command palette | Active on a profile document |
| File menu | Label: Open template workbench. Appears on a profile document. |
Opens the Template Workbench View in the current leaf for the active document. A profile document, a partial, or the citation text opens directly. A literature note opens the profile document it resolves against.
| Entry point | Details |
|---|---|
| Command palette | Active on a profile document, a partial, the citation text, or a literature note |
| File menu | Label: Switch to template workbench view. Same files as the palette entry. |
Brings the Workbench forward for the document being edited. When its pane shares a container with unrelated panes, the editor moves into a window of its own instead.
| Entry point | Details |
|---|---|
| Command palette | Active in the Template Workbench View |
| Pane menu | The Open template workbench item of the Workbench pane menu |
Opens the Note preview pane beside the Workbench, which shows how the current data renders.
| Entry point | Details |
|---|---|
| Command palette | Active in the Template Workbench View |
Imports a profile that someone shared with you, from the clipboard or from a file. The import sheet previews the partials, citation style, and Profile Match it carries before anything is written.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Settings | The import button on the profile list of Settings > ZotLit > Literature note profiles |
Template Workbench pane menu
The Workbench view's pane menu is where most template work starts. These entries sit in the zotlit section:
| Menu item | What it does |
|---|---|
| Open template workbench | Brings the Workbench forward, or moves the editor into its own window. |
| Choose item | Picks the Zotero item the preview and the data explorer read. |
| Choose annotation | Picks the annotation to render. Not offered for the citation text. |
| Partials | Opens another partial, creates one with New partial…, or unpacks the partials a shared profile still carries with Unpack partials. |
| Open citation text | Opens the citation text, zotlit-citation.md. |
Four entries join the pane menu outside the zotlit section. Change language switches the document between Liquid and Eta (JavaScript), and is not offered for a profile document. Save template data as JSON saves the current template data as a JSON file; with the annotation root selected, the same entry reads Export selected paper data when it can export the whole paper instead. Open as Markdown opens the document as Markdown. Restore built-in moves the Default profile's custom document to the trash, so the built-in profile applies again, and is offered on that document only.
Onboarding & release
ZotLit: Open welcome viewOpens the Library View and shows the setup banner above it, even after you dismissed it or setup is complete. The banner holds the setup steps, after a v1-to-v2 upgrade the link to the migration guide, and after ZotLit updates the link to the release notes.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Automatic | The banner shows over the Library View on a new install, after a v1-to-v2 upgrade, and after ZotLit updates, until you dismiss it or what it says is done |
Opens the release notes for the installed ZotLit version.
| Entry point | Details |
|---|---|
| Command palette | Always available |
| Settings | The View release notes button in the What's new in v… row of the settings tab |
| Welcome banner | The What's new button on the banner shown above the Library View after ZotLit updates |
Entry-point summary
| Command | Palette | Ribbon | File menu | Available when |
|---|---|---|---|---|
| Refresh Zotero database | yes | no | no | Always |
| Create or update all literature notes | yes | no | no | Always |
| Import all child and standalone notes | yes | no | no | Always |
| Open Zotero library | yes | yes | no | Always |
| Open literature note quick switcher | yes | no | no | Always |
| Insert Markdown citation | yes | no | no | An editor is open |
| Open citation key under cursor | yes | no | no | Cursor on a recognized citation key |
| Open citation key under cursor in new tab | yes | no | no | Cursor on a recognized citation key |
| Open citation key under cursor to the right | yes | no | no | Cursor on a recognized citation key |
| Open citation key under cursor in new window | yes | no | no | Cursor on a recognized citation key |
| Open references | yes | no | no | Always |
| Show cited by | yes | no | no | Always |
| Set citation presentation | yes | no | More options | Active Markdown note |
| Export note with citations | yes | no | no | Active Markdown note |
| Customize citation text | yes | no | no | Always |
| Open citation graph | yes | no | no | Always |
| Open local citation graph | yes | no | no | Active on a note |
| Update literature note | yes | no | yes | Active on a literature note |
| Update literature note metadata | yes | no | yes | Active on a literature note |
| Overwrite literature note | yes | no | yes | Active on a literature note |
| Import child notes from Zotero | yes | no | yes | Active on a literature note |
| Copy item key | yes | no | yes | Active on a file with a Zotero key |
| Customize this note's template | yes | no | yes | Active on a literature note |
| Switch literature note profile | yes | no | no | Active on a literature note |
| Open PDF | yes | no | yes | Active on a literature note |
| Update imported note from Zotero | yes | no | yes | Active on an imported note |
| Open Zotero annotations | yes | yes | no | Always |
| Follow the active tab in Zotero annotations | yes | no | no | Annotation view open, in another mode |
| Follow the Zotero reader in Zotero annotations | yes | no | no | Annotation view open, in another mode |
| Pin the current item in Zotero annotations | yes | no | no | Annotation view open on an item, not already pinned |
| Choose an item to pin in Zotero annotations | yes | no | no | Annotation view open |
| Unpin the item in Zotero annotations | yes | no | no | Annotation view open and pinned |
| Create new query file | yes | no | explorer | Always |
| Open template data explorer | yes | no | yes | Always |
| Open template workbench | yes | no | yes | Active on a profile document |
| Switch to template workbench view | yes | no | yes | Active on a template document or a literature note |
| Open template workbench | yes | no | no | Active in the Template Workbench View |
| Open note preview | yes | no | no | Active in the Template Workbench View |
| Import profile… | yes | no | no | Always |
| Open welcome view | yes | no | no | Always |
| Open release notes | yes | no | no | Always |
The two Open template workbench rows are separate commands. The first opens the profile document you are editing; the second brings the Workbench forward from inside the view.
Query CLI
Experimental feature
The Query CLI is experimental. Parameters, output schemas, and diagnostic reports may change between releases.
The Query CLI reads works, files, and reading marks for agents and scripts. One zotlit:query command selects a Query Dataset with from. How ZotLit Query works explains the datasets, filters, and groups.
| Command | Parameters | Result |
|---|---|---|
zotlit:query | from, filter, fields, formulas, sort, group, limit, library, output, id, this-item, this-attachment | One Query Row per matching Item, Attachment, or Annotation |
zotlit:query-schema | from | The schema URL, source custom fields, dataset fields, and defaults |
zotlit:query-values | kind, library, match, limit | The exact Collection paths or Tag names of each Library |
zotlit:query-guide | topic | Instructions for one topic, or the full guide when topic is omitted |
zotlit:annotation-image | key | The local PNG path, format, and provenance for an image or ink Annotation |
zotlit:query-cancel | id | Whether ZotLit found the named query and requested its cancel |
zotlit:query uses these parameters:
| Parameter | Value |
|---|---|
from | items, attachments, or annotations. The default is items. |
filter | A Filter Expression over the selected dataset and its related records. |
fields | A comma list of Projection Paths or a JSON array. fields=[] returns identity-only rows. |
formulas | A JSON object from Formula names to Filter Expressions. Read a Formula as formula.<name> in fields, filter, or another Formula. See Compute a value with a formula. |
sort | A comma list or a JSON array of { "field", "direction" } objects. Use -field for descending order and field or +field for ascending order. |
group | One scalar Projection Path, or a path with one [] such as tags[].name. The result contains one group for each value. |
limit | A positive integer or all. The default is 100. In a grouped query, the limit applies inside each group. |
library | personal, group:<groupID>, a comma list, a JSON array, or all. The default comes from the Library Scope setting. |
output | A new absolute file path for the complete JSON result. |
id | A query ID used by zotlit:query-cancel. |
this-item | An Item Indexed Key. A filter reads that Item as this.item. See Query Context. |
this-attachment | An Attachment Indexed Key. A filter reads that Attachment as this.attachment. See Query Context. |
ZotLit splits fields and sort at commas outside quotes and brackets.
Query datasets
Choose the dataset that represents one result row:
from value | One row represents | Dataset contents | Related records |
|---|---|---|---|
items | A work | Top-level Items outside the trash | attachments, annotations, notes |
attachments | A file or URL | Non-trashed Attachments of top-level, non-trashed Items | item, annotations |
annotations | A reading mark | Non-trashed Annotations on non-trashed Attachments of top-level, non-trashed Items | item, attachment |
Standalone Attachments are outside these datasets. Relation Lists contain records from the same dataset universes. Use list methods in filters and an explicit [] in Projection Paths.
notes lists the Child Notes of an Item that are outside the trash, in note key order. A note record has indexedKey, key, title, dateAdded, dateModified, library, and its parent item. No dataset reads notes as rows. This query finds papers with a Child Note and lists the note titles:
obsidian zotlit:query filter='!notes.isEmpty()' fields='title,notes[].title'For example, this query finds papers with no PDF that ZotLit can open on this computer:
obsidian zotlit:query filter='attachments.filter(value.contentType == "application/pdf" && value.exists).isEmpty()' fields=title,citationKeyStart from Attachments when each file must be one row. This query finds missing linked files:
obsidian zotlit:query from=attachments filter='linkMode == "linked_file" && !exists' fields=item.title,pathSelect a record by Indexed Key in the filter. Use indexedKey for a row, item.indexedKey for its parent Item, or attachment.indexedKey for an Annotation's parent Attachment. A key outside the Target Libraries gives a Query Warning. The Target Libraries stay unchanged.
Query Context
this-item and this-attachment set the Query Context of a query: the Item and the Attachment that a filter reads as this.item and this.attachment. Query files and query blocks set the same context from the note that shows them. See this: the paper of the note.
| Dataset | Records of the bound Item | Records of the bound Attachment |
|---|---|---|
items | indexedKey == this.item.indexedKey | |
attachments | item == this.item | indexedKey == this.attachment.indexedKey |
annotations | item == this.item | attachment == this.attachment |
obsidian zotlit:query from=annotations filter='item == this.item' this-item=ABCD2345 limit=allA filter that reads this.item or this.attachment without its parameter fails with the unbound-context diagnostic.
Projection and grouping
A path such as attachments[].path returns one value for each Attachment. It keeps source order and keeps null in its original position. A complete related record has a fixed summary:
| Record | Summary fields |
|---|---|
| Item | indexedKey, title, citationKey |
| Attachment | indexedKey, title, contentType, linkMode, path, exists |
| Annotation | indexedKey, type, text, comment, pageLabel, pageIndex |
| Note | indexedKey, title |
group accepts one scalar path. This command counts Attachments by fileType, which is pdf, epub, web, or other:
obsidian zotlit:query from=attachments group=fileTypeEach group contains value, count, and rows. count is the number of matches before the per-group limit. totalCount counts all matched records, and returnedCount counts the row entries returned across all groups.
A path with one [] groups by each element of a list. This command counts papers per tag:
obsidian zotlit:query group='tags[].name' fields='[]' limit=1A paper joins one group for each of its tags, and a paper without tags is in the null group. Groups can overlap, so their counts can add up to more than totalCount. Use collections[] for papers per Collection and attachments[].fileType for papers per file type.
This command returns the three most recent marks for each paper:
obsidian zotlit:query from=annotations group=item.indexedKey sort=-dateModified limit=3 fields=text,item.titleCollection and Tag values
zotlit:query-values lists the names that a filter matches exactly. Run it before you filter by a Collection or Tag.
| Parameter | Value |
|---|---|
kind | collections or tags. Required. |
library | personal, group:<groupID>, or all. The default comes from the Library Scope setting. |
match | Keeps the names that contain this text, ignoring letter case. |
limit | A positive integer or all, applied to each Library. The default is 100. |
Collection values are full paths joined by /, including empty Collections. Tag values are { name, type }, where type is manual, auto, or unknown. Each Library reports its library selector, name, values, totalCount, returnedCount, and truncated.
obsidian zotlit:query-values kind=collections match=thesisA Collection path in collections.contains or collections.within that no Target Library holds gives an unknown-collection Query Warning. Its suggestions lists the nearest paths, and a library value when another Library holds the path.
Schema, guide, and results
The single query.schema.json catalog has datasets.items, datasets.attachments, and datasets.annotations. It also has the shared functions, methods, properties, and types. zotlit:query-schema returns the catalog URL, source custom fields, and defaults by dataset. Add from=items, from=attachments, or from=annotations to narrow the live response.
zotlit:query-guide accepts datasets, filter, fields, sort, group, results, schema, values, or cancel as its topic. Omit topic to print the full guide.
Query results use CLI Contract version 3. The JSON envelope has command: "zotlit:query"; request.from names the dataset, and request.library names its Libraries. The top-level libraries field describes the Libraries that ZotLit read.
Read warnings before you report an empty result. On failure, read diagnostic.report and follow its final recovery action.
Every Attachment Row contains the Attachment and parent Item Indexed Keys. Every Annotation Row also contains its parent Attachment Indexed Key. Annotation default values include pageLabel, pageIndex, hasExcerptImage, Attachment details, Item title, and Citation Key. Request position in fields when source geometry is required. Read attachment.path to open the source document when attachment.exists is true.
When hasExcerptImage is true, pass the Annotation Indexed Key as key to zotlit:annotation-image. The command returns a file path instead of image bytes.
The zotlit-query agent skill reads zotlit:query-guide and zotlit:query-schema before it composes a query. See Ask an AI agent.
Template Workbench CLI
The Template Workbench registers its own commands with the Obsidian CLI, for agents and scripts rather than for the command palette. Five answer live:
zotlit:template-inspectinspects one template document and verifies that its saved source is current.zotlit:template-checkchecks every saved component of every profile.zotlit:template-statusreports the state of the Workbench for the vault.zotlit:template-datareturns the template data for one root.zotlit:template-guideprints the Workbench guide.
The earlier schema, rendering, source, and managed-frontmatter commands are retired. Each stays registered and answers a COMMAND_RETIRED diagnostic.
See Template Workbench CLI for every command, live and retired, with its flags and diagnostics, and Template Workbench for the concept.
See also
Query your Zotero library
Find works, inspect files, and summarize reading marks from the Obsidian CLI.
How ZotLit Query works
Query Datasets, Relation Lists, grouping, and exact Collection and Tag names.
Install the ZotLit skill
Install the agent workflow that uses the Template Workbench.
Settings
Every ZotLit setting: key, label, default, and location.
Export a note with citations
Export an active Markdown note to a Word document or web page.
Protocol links
obsidian://zotlit/* actions for scripting workflows.
Template syntax
Liquid markup reference for ZotLit templates.
Last updated on