ExAthena.Tools.Edit (ExAthena v0.4.5)

Copy Markdown View Source

Exact-string replacement in a file.

Mirrors the semantics of Claude Code's Edit tool:

  • old_string must appear in the file.
  • Unless replace_all is true, old_string must be unique.
  • If unique, exactly one occurrence is replaced by new_string.

This is intentionally strict. An agent that passes ambiguous old_string should be told to add surrounding context until it's unique — never silently replace the first match.