Compile with Overleaf
compileBuilds an Overleaf project and reports LaTeX errors and warnings as file:line references so you can fix them, with optional local PDF saving.
Instructions
Compiles the project on Overleaf's servers and reports LaTeX errors and warnings with file:line, so they can be fixed with edit_file. Optionally saves the PDF locally.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Faster draft mode (no images) | |
| project | No | Project name, id or Overleaf URL. May be omitted when exactly one project is pinned. | |
| rootFile | No | Compile this file instead of the main document | |
| savePdfTo | No | Absolute local path to save output.pdf to | |
| maxWarnings | No | How many warnings to list (default 15) | |
| stopOnFirstError | No | Stop at the first LaTeX error instead of compiling as far as possible |