Compile the open Overleaf project
compileBuilds a LaTeX project on Overleaf and returns error/warning counts, PDF status, and timings. Detects true build success via error_count because Overleaf reports success even with LaTeX errors.
Instructions
Triggers a LaTeX compile on Overleaf's CLSI, then fetches output.log and returns a unified summary: status, whether a PDF was produced, error_count (parsed ! -prefixed log lines), warning_count, first error lines, output file list, timings. Note: Overleaf returns status:"success" even when LaTeX has errors (PDF is still generated under nonstopmode). The truthful 'did it build cleanly?' check is error_count === 0. Use read_log for the full log when more context is needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | Draft mode — faster but uses placeholder images for figures. | |
| root_doc | No | Project-relative path to use as the LaTeX root (e.g. 'main.tex'). Defaults to the project's configured root doc. | |
| stop_on_first_error | No | Stop on the first LaTeX error instead of continuing to produce a partial PDF. |