word_insert_citation
Insert live Zotero citation fields into Word documents. The inserted citations are real Zotero fields that update on refresh and reformat with style changes.
Instructions
Insert a live Zotero citation field into a Word document.
The inserted citation is a real Zotero field, not text: in Word, Zotero's Refresh will update it and changing the document style will reformat it.
The document must be CLOSED in Word. A .docx.bak backup is written next to it on every change.
Args: document_path: Path to the .docx file. item_keys: One or more Zotero item keys (from zotero_search). Pass several to build a single multi-source citation. anchor_text: Insert immediately after this exact text. Get it from word_document_outline so it matches the document character for character. Use this OR paragraph_index. paragraph_index: Insert at the start or end of this paragraph. position: "end" (default) or "start", used with paragraph_index. locator: Page or range to cite, e.g. "45" or "45-47". prefix: Text before the citation, e.g. "see also". suffix: Text after the citation. suppress_author: Omit the author, for "as Smith (2020) argued". style: CSL style for the document. Only applied if the document has no Zotero style set yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | ||
| prefix | No | ||
| suffix | No | ||
| locator | No | ||
| position | No | end | |
| item_keys | Yes | ||
| anchor_text | No | ||
| document_path | Yes | ||
| paragraph_index | No | ||
| suppress_author | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||