edit_file
Modify text files by replacing specific line sequences with new content. Preview changes using dryRun before applying. Works within allowed directories and supports customizable edit options, returning a git-style diff.
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 the allowed directory. Always use dryRun first to preview changes before applying them.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dryRun | No | Preview changes without applying | |
edits | Yes | List of edit operations | |
options | No | ||
path | Yes | File to edit |