Attach File
attach_fileAttach a ChatGPT file or authorized local file to a Zotero item by item key, optionally targeting a user or group library.
Instructions
Attach a ChatGPT file input or an authorized local file to an item.
Args: item_key: The Zotero item key to attach the file to file: File object supplied by ChatGPT through openai/fileParams file_path: Local server path; stdio only unless HTTP roots are explicitly enabled
Pass both library_id and library_type to target another library; omit both to use the configured default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| item_key | Yes | ||
| file_path | No | ||
| library_id | No | ||
| library_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |