edit_file
Perform line-based text file edits by replacing exact line sequences with new content. Generates a git-style diff to preview or track changes. Works within predefined secure directories on the MCP Filesystem Server.
Instructions
Make line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dryRun | No | Preview changes using git-style diff format | |
edits | Yes | List of edit operations to perform | |
path | Yes | Path to the file to edit |