typst_get_diagnostics
Retrieve Typst compiler errors, warnings, hints, and line/column details from a typst.app project using local CLI compilation or a cloud fallback.
Instructions
Retrieve compiler diagnostics (errors, warnings, line/column numbers, and hints) for a https://typst.app project. Supports both local Typst CLI compilation (fastest) and Typst Web cloud diagnostics (zero-binary fallback using typst.app cloud compiler).
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": "typst_get_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Diagnostics mode: 'auto' (prefers local Typst CLI if installed, falls back to Typst Web cloud compiler), 'cli' (requires local typst binary), or 'web' (uses Typst Web cloud compiler). Defaults to 'auto'. | |
| mainFile | No | Optional main .typ entry file override (defaults to project previewed file or main.typ) | |
| projectId | Yes | The Typst project ID |