write_file
Create or update files in your Overleaf project by specifying the file path and content.
Instructions
Create or update a file in the Overleaf project
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": {
"file_path": "<file_path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the file in the Overleaf project | |
| content | Yes | Content to write to the file | |
| project_id | No | Overleaf project ID (optional if PROJECT_ID is configured) |