dsh-zotero-reader

Read Zotero PDFs inside the DSH right sidebar and let the model work on them directly. Requires Zotero 10 or newer with the local API enabled (Zotero 7/8 is read-only and cannot accept annotations). The model gets three tools: search_zotero_library to search your library, read_zotero_paper to read a paper by page or by query, and ask_zotero_paper for page-cited answers. Annotation handling mirrors Zotero's own reader: click an annotation to open a card with page number, quoted text, a comment box and tags; the three-dot menu recolors or deletes it; multi-line selections get a single surrounding box rather than one box per line. Comments, tags, colors and deletions are written back through the Zotero local API, so they show up in Zotero and annotations made in Zotero show up here. Selection actions cover translate, explain, ask and highlight; the reader remembers the exact reading position (page plus offset) and zoom level per paper, and keeps opened PDFs mounted so switching tabs does not reload them. MinerU re-parsing is available for scanned or broken-text PDFs and is off by default.

Overview

Read Zotero PDFs inside the DSH right sidebar and let the model work on them directly. Requires Zotero 10 or newer with the local API enabled (Zotero 7/8 is read-only and cannot accept annotations). The model gets three tools: search_zotero_library to search your library, read_zotero_paper to read a paper by page or by query, and ask_zotero_paper for page-cited answers. Annotation handling mirrors Zotero's own reader: click an annotation to open a card with page number, quoted text, a comment box and tags; the three-dot menu recolors or deletes it; multi-line selections get a single surrounding box rather than one box per line. Comments, tags, colors and deletions are written back through the Zotero local API, so they show up in Zotero and annotations made in Zotero show up here. Selection actions cover translate, explain, ask and highlight; the reader remembers the exact reading position (page plus offset) and zoom level per paper, and keeps opened PDFs mounted so switching tabs does not reload them. MinerU re-parsing is available for scanned or broken-text PDFs and is off by default.

Installation

Install from GitHub

dsh plugin --profile web add github:minhaoli/dsh-zotero-reader

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.