edit_file
Modify text files line-by-line with defined edits using the MCP Filesystem Server. Specify path, text changes, and encoding, and optionally preview changes with dry-run mode. Returns a Git-style diff of modifications.
Instructions
Make line-based edits to a text file.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dry_run | No | ||
edits | Yes | ||
encoding | No | utf-8 | |
path | Yes |