import_project_zip
Create a new Overleaf project from a local .zip archive of LaTeX sources; the archive filename becomes the default project name.
Instructions
Create a new project from a local .zip archive of LaTeX sources. name defaults to the archive file name. The returned name is the one Overleaf stored, which can differ: Overleaf uses the root document's \title when present and adds " (n)" when the name is already taken; use it as confirmName. If the project was imported but its name could not be read back, the error (AUTH_EXPIRED, POLICY_DENIED, or TIMEOUT from that read, else REMOTE_ERROR) is never retryable and carries the new projectId in details; do not import again. Overleaf caps archives at about 50 MB and rate-limits this route: RATE_LIMITED means wait details.retryAfterMs before trying again, and nothing was created. Set the root document afterwards with update_project_settings if the archive has more than one .tex file at the top level.
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": {
"localZipPath": "<localZipPath>"
},
"name": "import_project_zip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Project name, 1 to 150 characters without slashes | |
| localZipPath | Yes | Local path of a .zip archive |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | Yes | ||
| projectId | Yes |