overleaf_write_file
Create or overwrite a text file in an Overleaf project, automatically generating parent folders as needed. Write .tex, .bib, or .sty content directly to a specified project path.
Instructions
Create or overwrite a text file (.tex, .bib, .sty, etc.) directly in an Overleaf project.
Parent folders are created automatically if they do not exist.
Args: project: Overleaf project ID, project URL, or exact project title. remote_path: Destination path inside Overleaf (e.g. 'main.tex' or 'sections/methods.tex'). content: Full UTF-8 text content to write.
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": "<project>",
"remote_path": "<remote_path>",
"content": "<content>"
},
"name": "overleaf_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| project | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |