Skip to content

feat: add write_file and write_section tools#4

Draft
SemPlaatsman wants to merge 4 commits intomjyoo2:masterfrom
SemPlaatsman:feature/write_file
Draft

feat: add write_file and write_section tools#4
SemPlaatsman wants to merge 4 commits intomjyoo2:masterfrom
SemPlaatsman:feature/write_file

Conversation

@SemPlaatsman
Copy link

@SemPlaatsman SemPlaatsman commented Feb 14, 2026

Note

Depends on #3, please merge that first.

Adds write_file and write_section tools that complete the read/write integration with Overleaf. Both tools pull before writing to stay in sync with remote changes, and return a clear error message on merge conflicts or push rejection.

write_file: full file overwrite, suited for large structural changes.

Parameters:

  • filePath (required)
  • content (required)
  • commitMessage (required)
  • projectName (optional)

write_section: replaces a single named section and its children, leaving the rest of the file untouched. Preferred for targeted edits, as it reduces the risk of merge conflicts when collaborating simultaneously.

Parameters:

  • filePath (required)
  • sectionTitle (required, must match exactly)
  • newContent (required, include the section heading)
  • commitMessage (required)
  • projectName (optional)

Tested on Windows 11 with Claude Desktop.

@SemPlaatsman SemPlaatsman changed the title feature: added write functionality to MCP server feat: add write_file and write_section tools Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant