write_file
Write files to allowed paths, return a diff preview unless confirmed, and back up existing files before changes.
Instructions
Write a file in allowed paths. Without confirm=true it only returns the diff. Backs up first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| confirm | No | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |