typst_upload_asset
Upload or replace binary assets such as images, PDFs, and fonts in a Typst project from a local file path or base64 data.
Instructions
Upload or replace a binary asset (PNG, JPG, SVG, PDF, font, etc.) in a https://typst.app project from a local file path or base64 data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| convert | No | Whether typst.app should convert the uploaded file | |
| fileName | Yes | Destination path inside the Typst project (e.g. 'figures/plot.png') | |
| projectId | Yes | The Typst project ID | |
| base64Data | No | Base64-encoded binary payload (used if localFilePath is not provided) | |
| localFilePath | No | Local filesystem path to read binary asset bytes from |