create_project
Create a new Typleaf project via the web API. Use compiler='typst' for Typst projects to avoid compilation errors from the default pdflatex. Requires TYPLEAF_SESSION.
Instructions
Create a new blank Typleaf project via the web API. Pass compiler='typst' to make it a Typst project — a new project defaults to pdflatex, and a project holding .typ files but left on pdflatex fails to compile with confusing TeX errors. Requires TYPLEAF_SESSION.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Project name | |
| compiler | No | Compiler to set on the new project. Use 'typst' for a Typst project. Omit to leave the default (pdflatex). |