write_file
Overwrite a file's entire content or create it if missing. Use confirm=true to replace an existing file.
Instructions
Overwrite a file's entire content (creating it if it doesn't exist).
If the file already exists, confirm=True is required (unless the server's require_overwrite_confirmation setting is disabled).
Args: path: Path relative to the workspace root. content: New full text content of the file. confirm: Must be True to overwrite an existing file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| confirm | No | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||