Export a document
export_documentA download link for the document as pdf, tex (one LaTeX file; alias latex), zip (an Overleaf-style LaTeX project) or docx (Word; alias word). The file is not returned here: give the author the link (valid 15 minutes) to click. The reply also says whether the document last compiled (lastCheck); for a pdf, run check_document first if it never has; when that check found this version does not compile, no pdf link is given (tex and zip still are). Read access is enough.
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": "export_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | pdf (default), tex, zip or docx. | |
| documentId | Yes | The document id. |