edit_file
Modify text files by specifying line-based edits, generating a Git-style diff for tracking changes. Supports custom text encoding and optional dry-run mode for previewing modifications without saving.
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 |