overleaf_compile
Compile an Overleaf project's LaTeX source, surface errors and warnings, and optionally save the generated PDF or raw log to local paths.
Instructions
Trigger LaTeX compilation on Overleaf, parse LaTeX errors/warnings, and optionally download the PDF.
Args: project: Overleaf project ID, project URL, or exact project title. save_pdf_path: Optional local path to save the compiled output.pdf (e.g. './paper.pdf'). save_log_path: Optional local path to save the full raw LaTeX output.log. draft: Compile in fast draft mode (skips rendering heavy figures). root_doc_path: Optional main .tex file path (e.g. 'main.tex') if overriding project default.
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": "<project>"
},
"name": "overleaf_compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | ||
| project | Yes | ||
| root_doc_path | No | ||
| save_log_path | No | ||
| save_pdf_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |