Attach File
attach_fileAttach a ChatGPT-provided file or an authorized local file to a Zotero item using its item key, so the file is stored alongside the reference.
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_key": "<item_key>"
},
"name": "attach_file"
}
}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 |