Edit fields on a Zotero item
zotero_update_itemUpdate Zotero item metadata fields while preventing overwrites from concurrent edits, with a dry-run option to preview changes.
Instructions
Change one or more metadata fields on an existing item.
The item's current version is read first and supplied as
If-Unmodified-Since-Version, so a concurrent edit in the Zotero
desktop application causes the write to fail rather than silently
overwrite.
Args: item_key: Key of the item to edit. fields_json: A JSON object of field names to new values, for example {"volume": "12", "pages": "45-58"}. dry_run: Show the change without writing.
Returns: A before-and-after summary of the fields that changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| item_key | Yes | ||
| fields_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |