# Export Citation

> Export resolved citations to a reference-manager file format (RIS, BibTeX, CSL JSON, EndNote XML, RefWorks, NBIB, Zotero RDF, CSV, or plain text).

- Skill: `mlava/export-citation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mlava/export-citation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mlava/export-citation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: mlava (https://skillmd.com/u/mlava)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mlava/export-citation

---


# 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 `.json` artifact to attach to a draft.

## Inputs

- `text` (string) OR `items` (CSL-JSON[]) — Input identifiers or pre-resolved items.
- `format` (string, required) — `ris`, `bibtex`, `csl-json`, `endnote-xml`, `refworks`, `nbib`, `rdf`, `csv`, or `txt`.
- `style` (string, optional) — Only used when `format=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

```bash
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

- `formatCitation` for inline-rendered references.
- [`/docs.md#post-apiexport`](https://scholar-sidekick.com/docs.md) for full format reference.

