Write content to a file, creating or overwriting it.
## Parameters
- `path` (required): Absolute path to the file
- `content` (required): The content to write
## Usage Notes
- Overwrites existing files completely
- Creates parent directories if needed
- You MUST read the file first before overwriting existing files
- Prefer `edit_file` for modifications to existing files
- Never create documentation files unless explicitly requested
## When to Use
- Creating new files
- Completely replacing file contents
- When edit_file cannot handle the change
## When NOT to Use
- For partial modifications (use `edit_file` instead)
- For creating README or documentation (unless asked)
## Example
```json
{
"path": "/path/to/new_file.rs",
"content": "fn main() {\n println!(\"Hello\");\n}"
}
```