update_project_settings
Persist a project's root document, TeX engine, TeX Live image, or spell-check language in Overleaf's project settings so the web UI Recompile uses the change.
Instructions
Persist the project's root document, TeX engine, TeX Live image, or spell-check language in Overleaf's own project settings, so the web UI's Recompile follows the change. rootFilePath must name an existing .tex, .ltx, .Rtex, or .Rnw document; any other extension is INVALID_ARGUMENT before any request. Settings are applied one request at a time; if one fails, the error keeps its code, lists the settings already stored in details.applied and the failed one in details.failed, and no later setting is sent. Returns the settings as re-read from the project. Provide at least one field.
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>"
},
"name": "update_project_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compiler | No | ||
| imageName | No | TeX Live image, as shown in Overleaf's menu | |
| projectId | Yes | Overleaf project ID | |
| rootFilePath | No | Document Overleaf should compile by default: .tex, .ltx, .Rtex, or .Rnw | |
| spellCheckLanguage | No | Overleaf language code such as en or de; an empty string turns spell checking off |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compiler | No | ||
| imageName | No | ||
| projectId | Yes | ||
| rootDocPath | No | ||
| spellCheckLanguage | No |