File Tools¶
10 tools for file operations.
read_file¶
Read entire file contents.
Example:
read_file_chunk¶
Read specific lines from a file.
Example:
create_file¶
Create a new file with content.
Example:
Backup
Creates backup if file exists and is overwritten.
modify_file¶
Replace entire file content.
Example:
Backup
Creates backup before modification.
patch_file¶
Apply partial changes using find/replace.
Example:
Preferred
Use patch_file instead of modify_file for small changes. It's safer and more precise.
delete_file¶
Delete a file.
Example:
Backup
Creates backup before deletion.
move_file¶
Move or rename a file.
Example:
restore_backup¶
Restore file from backup.
Example:
list_backups¶
List available backups for a file.
Example:
show_diff¶
Show differences between current and backup.
Example:
Output: