compile
Submit an asynchronous LaTeX compile job and return immediately with its job_id (the compile keeps running on the server). Then you MUST poll compile_status with that job_id until status becomes succeeded/failed/cancelled. compile_status waits up to 5 seconds server-side; call it again directly without waiting yourself; cancelled means the user already cancelled the job — do not keep polling and do not retry the compile. Supports xelatex, pdflatex, and lualatex (engine 'auto' honors the entry file's '% !TeX program' magic comment). SUBMITS an async job: returns job_id immediately — poll compile_status(job_id) for the outcome and pdf_url.
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_id": "<project_id>"
},
"name": "compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | auto | |
| filename | No | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |