write_file
Create a new text file or replace an existing file’s full content and push it to Overleaf, with folders created as needed; use edit for existing files to avoid accidental text loss.
Instructions
Create a new text file, or replace a file's entire content, and push it to Overleaf.
Prefer edit_file for changes to existing files: it cannot accidentally drop text.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to create or overwrite, relative to the project root. Folders are created as needed. | |
| content | Yes | The complete new file content. | |
| message | No | Commit message shown in Overleaf's history. |