compile_project
Starts LaTeX project compilation and returns a job ID; poll the result endpoint to retrieve the generated PDF and build logs.
Instructions
Start compilation and return a job ID immediately. mode=auto tries Overleaf first and falls back locally for timeout/service errors. Local compilation needs latexmk and the selected engine. Poll get_compile_result for this build PDF and logs.
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": {
"projectId": "<projectId>"
},
"name": "compile_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| compiler | No | ||
| rootPath | No | ||
| projectId | Yes | ||
| timeoutSeconds | No |