typst_capture_screenshot
Capture high-resolution PNG screenshots of a Typst project to verify its visual output, either by rendering compiled pages or by capturing the live typst.app editor and preview.
Instructions
Capture high-resolution PNG preview screenshots to verify the visual status of a https://typst.app project (mode='pages' renders compiled PNG pages via Typst; mode='browser' captures the live typst.app web editor & preview pane via Playwright).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppi | No | Pixels per inch resolution for rendered PNGs (default: 144) | |
| mode | No | 'pages' (default) compiles high-DPI PNG pages from synced project files; 'browser' captures the live https://typst.app/project/:id UI | |
| pages | No | Page range to capture, e.g. '1', '1-3', '1,4', or 'all' (default: 'all') | |
| mainFile | No | Optional main .typ entry file override | |
| outputDir | No | Optional directory path to save the rendered PNG screenshot files | |
| projectId | Yes | The Typst project ID | |
| includeBase64 | No | Include screenshots as image blocks for direct vision inspection (default: true; set false to return paths and metadata only) |