feat: add write_file and write_section tools#4
Draft
SemPlaatsman wants to merge 4 commits intomjyoo2:masterfrom
Draft
feat: add write_file and write_section tools#4SemPlaatsman wants to merge 4 commits intomjyoo2:masterfrom
SemPlaatsman wants to merge 4 commits intomjyoo2:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Depends on #3, please merge that first.
Adds
write_fileandwrite_sectiontools 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.