compile_status
Two modes. WITHOUT job_id: return the project's LATEST compile state (no compile is submitted) — compile_state carries is_fresh_green / last_attempt_result; use this FIRST when you need to know whether the project compiles or what the last attempt concluded, and pair it with compile_log for the raw error log. WITH job_id: poll the asynchronous compile job returned by the compile tool; waits up to 5 seconds server-side for a terminal status. Call again directly without waiting yourself if still running. Returns status running/succeeded/failed/cancelled plus the result anchors (pdf_url, errors, warnings, engine) once terminal. cancelled means the user cancelled the job — do not keep polling or retry the compile. In the job_id mode the terminal payload also carries compile_state (state_seq, last_success_seq, is_fresh_green): the SAME row the user's compile badge shows. Treat is_fresh_green=true as the only evidence that the current files compile — a success whose last_success_seq lags state_seq means the files changed after that compile; do not tell the user it compiles until a fresh compile is green. If status is still running after about 2 minutes of polling, stop polling and tell the user the compile is taking unusually long.
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_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |