edit_file
Replace a substring in a WSL file with new text, including dry-run preview and replace-all options.
Instructions
Line/substring-based edit of a WSL file: replace oldString with newString. oldString must be unique unless replaceAll=true. Use dryRun=true to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| distro | No | ||
| dryRun | No | ||
| newString | Yes | ||
| oldString | Yes | ||
| replaceAll | No |