add_to_collection
Add a paper to a collection using its arXiv ID and collection name or ID. Auto-saves the paper to your library and creates the collection if it doesn't exist.
Instructions
Add a paper to a collection, addressed by collection_id OR collection_name (get-or-create by name — no need to look up an id first). MUTATES: also auto-saves the paper to the library. Idempotent (adding a paper already in the collection is a no-op). Requires SF_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arxiv_id | Yes | arXiv ID of the paper to add, e.g. '2407.15831'. | |
| collection_name | No | Name of the collection. Created if it doesn't exist. Provide this OR collection_id. | |
| collection_id | No | UUID of an existing collection. Provide this OR collection_name. |