zotero_batch_update
Batch update Zotero items: add/remove tags, and add/update/remove Extra key-value pairs (e.g., Better BibTeX keys). Select by keys, query, or tags to edit many at once.
Instructions
Edit metadata across many items in one call: add/remove tags and upsert/remove Key: value lines in Extra (Better BibTeX keys, tex.* fields). Select items by item_keys, and/or a free-text query, and/or an existing tag (query and tag are ANDed; tag may be a list to OR); item_keys wins. At least one selector AND one action are required. add_tags/remove_tags keep the item's other tags — not a replace-all. set_keys upserts Extra lines, matching a line case-insensitively by its key: prefix and replacing it in place, else appending; remove_keys deletes those lines; lines without a colon are preserved. limit: max items for query/tag selection (default 50). Attachments and items needing no change are skipped and counted. Requires a writable library. Example: zotero_batch_update(tag='to-read', add_tags=['reviewed'], remove_tags=['to-read']).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| limit | No | ||
| query | No | ||
| add_tags | No | ||
| set_keys | No | ||
| item_keys | No | ||
| remove_keys | No | ||
| remove_tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |