rename_tag
Rename a tag across all items in the library: adds the new tag and removes the old one on every item that carries it.
Instructions
Rename a tag across every item in the library that carries it (not just one item -- see add_tags/remove_tags/set_tags for single-item edits). Zotero has no native tag-rename: this adds new_tag and removes old_tag on each affected item individually, merging with each item's existing tags.
Not atomic across items -- if it fails partway through (e.g. a concurrent edit on one item), re-run with the same arguments; already-renamed items are skipped since they no longer carry old_tag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_tag | Yes | ||
| old_tag | Yes |