zotero_create_annotation
Create highlights, notes, images, or ink annotations on PDF attachments in Zotero by providing the attachment key and page position. Returns the new annotation's key.
Instructions
Create an annotation on a PDF attachment: a highlight, a note annotation, an image, or ink. annotation_position is the page placement as a JSON object, e.g. {'pageIndex': 0, 'rects': [[x1, y1, x2, y2]]} in PDF coordinates. Attach to the ATTACHMENT key (the PDF), not the parent item. Returns the new annotation's key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_label | No | Printed page label to show, e.g. '12'. | |
| sort_index | No | Sort position as 'pageIndex_chars', e.g. '00000_00042'. | |
| attachment_key | Yes | Key of the PDF attachment item. | |
| annotation_text | No | Highlighted text (required for highlight). | |
| annotation_type | Yes | One of: highlight, note, image, ink. | |
| annotation_color | No | Hex color, e.g. '#ffd400'. | |
| annotation_comment | No | Your comment on the annotation. | |
| annotation_position | Yes | Placement as a JSON object, e.g. {'pageIndex': 0, 'rects': [[0.1, 0.2, 0.8, 0.3]]}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |