Edit File
edit_fileApply precise line-based edits to text files, replacing exact line sequences with new content and returning a git-style diff. Works only within allowed directories.
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 |
|---|---|---|---|
| path | Yes | ||
| edits | Yes | ||
| dryRun | No | Preview changes using git-style diff format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |