files/update
Modify file contents programmatically by appending text or replacing specific line ranges. Designed for automated editing on Linux.
Instructions
Programmatically edit a file by appending text or replacing specific line ranges.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to edit | |
| append | No | If true, appends the content to the end of the file | |
| content | Yes | Text content to insert or append | |
| end_line | No | End of the line range to replace (inclusive) | |
| privileged | No | Set to true to edit as root | |
| start_line | No | Start of the line range to replace (1-indexed) |