Library Export
library_exportExport screened library papers to a BibTeX file for reference lists and citation managers such as Zotero, EndNote, or JabRef after finalizing your selection.
Instructions
Export screened papers from the library to a BibTeX file.
TRIGGER when the user wants a reference list, citation export, or a .bib file for Zotero / EndNote / JabRef (导出参考文献、生成 BibTeX).
Generates BibTeX entries directly from library columns and saves
them to ~/.AI-CACHE/openalex/collections/{target}.
Use this as the FINAL step — after iteratively screening with
library_query and confirming the papers you want.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "library_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Single ``column[:asc|desc]`` expression. Allowed columns: id, title, publication_year, publication_date, cited_by_count, source_name, is_oa. | |
| target | No | Target .bib filename (default ``"export.bib"``). Must be a single filename and is always stored in the ``collections/`` directory. | export.bib |
| work_ids | No | Comma-separated work IDs (e.g. ``"W123,W456,W789"``) or ``"*"`` to export all works. | * |
| cite_key_style | No | ``"author_year"`` (default, e.g. ``liu2024``) or ``"openalex_id"`` for legacy keys. | author_year |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |