Add a reference and cite it
add_referenceAdds a published work (by DOI) to the project's references the way that document keeps them: an entry in the .bib file it uses, or a \bibitem in its thebibliography list placed in citation order. With cite_after, also inserts \cite{key} right after that exact text (it must occur once in the file), so the numbering comes out right. Returns the citation key.
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": {
"project_id": "<project_id>",
"doi": "<doi>"
},
"name": "add_reference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | Yes | The work's DOI. | |
| path | No | The .tex file where the citation goes; the project's main file if omitted. | |
| cite_after | No | Exact text in that file after which to insert \cite{key}, e.g. the end of the sentence that cites it (before its full stop). | |
| project_id | Yes | The project's id, from list_projects. |