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.
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": {
"name": "<name>"
},
"name": "create_project"
}
}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). |