Skip to content

Conversation

@tomholford
Copy link
Contributor

Adds two file manipulation tools to the filesystem server:

modify_file

  • Find and replace text in files using string matching or regex
  • Supports single or multiple occurrences replacement
  • Returns modification count and file metadata

search_within_files

  • Search for text within file contents across directory trees
  • Configurable depth limits and result caps
  • Excludes binary files, reports line numbers and context
  • Distinct from existing search_files which only searches filenames

@tomholford tomholford changed the title feat: add modify_file and search_witin_files tools feat: add modify_file and search_within_files tools Jun 13, 2025
Copy link
Collaborator

@jochil jochil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jochil jochil merged commit 8b1ab02 into mark3labs:main Jun 13, 2025
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.

2 participants