1File writing tool that creates or updates files in the filesystem, allowing you to save or modify text content.
 2
 3WHEN TO USE THIS TOOL:
 4
 5- Use when you need to create a new file
 6- Helpful for updating existing files with modified content
 7- Perfect for saving generated code, configurations, or text data
 8
 9HOW TO USE:
10
11- Provide the path to the file you want to write
12- Include the content to be written to the file
13- The tool will create any necessary parent directories
14
15FEATURES:
16
17- Can create new files or overwrite existing ones
18- Creates parent directories automatically if they don't exist
19- Checks if the file has been modified since last read for safety
20- Avoids unnecessary writes when content hasn't changed
21
22LIMITATIONS:
23
24- You should read a file before writing to it to avoid conflicts
25- Cannot append to files (rewrites the entire file)
26
27WINDOWS NOTES:
28
29- File permissions (0o755, 0o644) are Unix-style but work on Windows with appropriate translations
30- Use forward slashes (/) in paths for cross-platform compatibility
31- Windows file attributes and permissions are handled automatically by the Go runtime
32
33TIPS:
34
35- Use the View tool first to examine existing files before modifying them
36- Use the LS tool to verify the correct location when creating new files
37- Combine with Glob and Grep tools to find and modify multiple files
38- Always include descriptive comments when making changes to existing code