Compile the open Overleaf project
compileTrigger a LaTeX build on Overleaf and receive a summary of errors, warnings, and output files. Use error_count to verify a clean build, since status 'success' can still contain 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. |