⌨️Write Tool
Also known as Write, Claude Code Write tool
The tool that makes a new file or replaces a whole one.
Think of it like
It is like a clean new page. You write it all from the top.
Example
Lucy asks for a new test file. Claude uses Write to make it from scratch, then runs the tests to check it.
Why it matters
It is how brand new files appear, so it is one of the actions worth watching.
Definition
Example code
json
{"permissions": {"allow": ["Edit(./docs/**)"]}}Common mistake
Key takeaways
- 1Whole file. New or replaced.
- 2Not a patch. Edit does small changes.
- 3Asks first. Unless allowed.