exportCitation
Resolves identifiers and serialises the resulting items to a bibliography file. Targets reference managers (Zotero, Mendeley, EndNote, RefWorks) and LaTeX workflows (BibTeX/Overleaf).
When to use
- The user wants to import citations into Zotero, Mendeley, EndNote, or a LaTeX project.
- An agent needs a
.ris,.bib, or.jsonartifact to attach to a draft.
Inputs
text(string) ORitems(CSL-JSON[]) — Input identifiers or pre-resolved items.format(string, required) —ris,bibtex,csl-json,endnote-xml,refworks,nbib,rdf,csv, ortxt.style(string, optional) — Only used whenformat=txt(selects the formatter style).
Outputs
Plain-text body in the requested format with appropriate Content-Type and Content-Disposition: attachment; filename=... headers.
Underlying surfaces
- REST:
POST /api/export. - MCP tool:
exportCitation.
Example
curl -sS -X POST "https://scholar-sidekick.com/api/export" \
-H "Content-Type: application/json" \
-d '{"text":"10.1038/nphys1170\n9780306406157","format":"ris"}' \
-o citations.ris
See also
formatCitationfor inline-rendered references./docs.md#post-apiexportfor full format reference.