zotero_process_docx
Replace {{CITE:...}} stubs in a .docx file with live Zotero field codes, fetching item data from Zotero and writing the output. Open in Word and refresh to activate citations.
Instructions
Process a .docx file to convert {{CITE:...}} stubs into live Zotero field codes. This directly edits the .docx XML to produce the exact field structure Zotero expects. After processing, open the file in Word and click Zotero > Refresh.
Give this tool the file path and it does everything: fetches item data from Zotero, builds field codes, writes the output. Fire and forget.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputPath": "<inputPath>"
},
"name": "zotero_process_docx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Path to the .docx file with citation stubs | |
| outputPath | No | Output path (defaults to overwriting the input file) |