Upload local file or folder
typst_upload_fileUpload local files or folders into a Typst project, replacing existing paths and skipping hidden items. Keep project assets current by syncing data, images, fonts, or bibliographies.
Instructions
Upload a local file (image, font, .bib, data, ...) or a whole folder into a project. Existing files with the same path are replaced. Hidden files and folders are skipped. Example: local_path="/home/me/figures", remote_path="figures".
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": {
"project_id": "<project_id>",
"local_path": "<local_path>"
},
"name": "typst_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_path | Yes | Absolute local file or directory path | |
| project_id | Yes | Project ID from typst_list_projects, e.g. 'pAbC123dEf456gHi789jKl' | |
| remote_path | No | Target path (file) or folder prefix (directory). Defaults to the file name / project root |