add_linked_url_attachment
Attach a linked URL to an existing Zotero item or create a standalone linked URL attachment for external PDFs, web pages, or other resources; no file is stored.
Instructions
Attach a linked URL to an existing Zotero item, or create a standalone linked-URL attachment. Use this to link external PDFs, web pages, or other resources to items already in your library. If parent_item is provided, the attachment is added as a child; otherwise it is standalone. A linked URL stores no file and no full text (get_item_fulltext cannot read it): to store a PDF in Zotero use import_pdf_to_zotero.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the resource to link | |
| tags | No | Tags to apply to the attachment | |
| title | No | Display title for the attachment (defaults to the URL) | |
| library_id | No | Numeric user or group ID for this call (a group's ID is the number in its zotero.org/groups/<id> URL). Default: the configured library. Required with library_type 'group' when the server is configured for a user library. | |
| collections | No | Collection keys to add the attachment to (only used for standalone attachments, ignored when parent_item is set) | |
| parent_item | No | Key of the parent item (a regular item, not an attachment or note), from search_library or get_collection_items. If provided, the attachment becomes a child of that item. | |
| content_type | No | MIME type of the linked resource (e.g. "application/pdf", "text/html") | |
| library_type | No | Library for this call: 'user' (personal) or 'group'. Default: the library configured on the server. |