mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-11-20 08:01:53 +08:00
722 B
722 B
Performs exact string replacement in a file.
- You must ${READ_TOOL_NAME} the file in this conversation before editing, or the call will fail.
old_stringmust match the file exactly, including indentation, and be unique — the edit fails otherwise. Strip the Read line prefix (${SUPPORTS_COLON_LINE_PREFIX?"line number + a single tab or:":"line number + tab"}) before matching.replace_all: truereplaces every occurrence instead.