overleaf_upload_file
Upload a local file to an Overleaf project root, preserving same-named files unless overwrite is requested. Ideal for adding images, .bib, .cls, or .tex files after editing.
Instructions
Primary file-writing tool: upload one local file to the project root. Use after editing a file obtained with overleaf_download_file, or to add images, .bib, .cls, and .tex files. A same-named file is preserved unless overwrite: true is intentionally supplied; ZIP import uses overleaf_create_project_from_zip instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Replace a same-named file only when true. Defaults to false. | |
| local_path | Yes | Absolute local file path, or a path relative to OVERLEAF_DATA_DIR/workspace (legacy: OVERLEAF_WORKSPACE_DIR), for example figures/overview.png | |
| project_id | Yes | 24-character hexadecimal Overleaf project ID from the project URL |