claude-code-system-prompts/system-prompts/tool-description-write-read-existing-file-first.md
2026-05-12 18:24:57 -06:00

523 B

Writes a file to the local filesystem, overwriting if one exists.

When to use: creating a new file, or fully replacing one you've already ${READ_TOOL_NAME}. Overwriting an existing file you haven't ${READ_TOOL_NAME} will fail. For partial changes, use ${EDIT_TOOL_NAME} instead.