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).
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 |