Annotate a PDF (highlights, notes)
zotero_annotateAdd or delete PDF annotations (highlights, underlines, notes) in your Zotero library. Specify parent item, type, text, and position to create or remove them.
Instructions
Add or delete Zotero PDF annotations (highlights, underlines, notes) — the same objects you create in the Zotero PDF reader. action:"add" needs parent (a regular item key OR a PDF attachment key) and annotations: each with type (highlight|note|underline, default highlight), text (the exact highlighted passage), optional comment, color, page (0-based page index), and position ({"pageIndex":N,"rects":[[x1,y1,x2,y2],...]} in PDF points with bottom-left origin — without a position a highlight cannot render in place). action:"delete" trashes the annotations in annotation_keys. Writes go to the running Zotero desktop app for your personal library (via its connector protocol, or its local-API writes where available), otherwise to the cloud Web API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Default "add". | |
| parent | No | Item key or PDF attachment key to annotate. | |
| library_id | No | ||
| annotations | No | Annotations to add. | |
| library_type | No | ||
| annotation_keys | No | Annotation keys to trash (action:"delete"). |