Add a reference
add_referenceAdd a reference to the document's bibliography from its DOI, arXiv id or ISBN (give one): Lilia looks it up (Crossref, arXiv, Open Library) and writes the entry, so its authors, title, venue and year are the real ones. Returns the cite key and what to write in the text to cite it (@cite{key}). A DOI the document already holds is not added twice: its key is returned. The bibliography block is made at the end when there is none.
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": {
"documentId": "<documentId>"
},
"name": "add_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | No | A DOI, e.g. 10.1145/321879.321884 (a https://doi.org/ link is fine). | |
| isbn | No | An ISBN, for a book. | |
| arxiv | No | An arXiv id, e.g. 2106.09685 or arXiv:2106.09685. | |
| citeKey | No | Optional cite key to use instead of Lilia's (author and year), e.g. tarjan1975. | |
| documentId | Yes | The document id. |