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.
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>",
"fileName": "<fileName>"
},
"name": "typst_upload_asset"
}
}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 |