Add items to collection

Add items to a collection; they stay in the collections they are already in.

MCP tool zotero_write → add_items_to_collection

write

Adds the items to the collection the way dragging them onto it does, so they keep their other collections. It reaches nobody and runs without asking first; Remove Item(s) from Collection… in Zotero undoes it.

Parameters

Parameters: add_items_to_collection
NameTypeDescription
collection_key string required string Collection key from list_collections.
item_keys string[] required string[] Items to add.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "zotero_write",
    "arguments": {
      "operation": "add_items_to_collection",
      "arguments": {
        "collection_key": "collection key",
        "item_keys": [
          "item keys"
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "collection_key": "C4T8WZ2N",
    "added": [
      "H6R2VB5D",
      "N9Q4XA7E"
    ],
    "already_in_collection": []
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.