# `Condukt.Tools.Edit`
[🔗](https://github.com/tuist/condukt/blob/0.16.5/lib/condukt/tools/edit.ex#L1)

Tool for making surgical edits to files.

Finds exact text in a file and replaces it with new text.
The old_text must match exactly, including whitespace.

All filesystem access goes through the active `Condukt.Sandbox`.

## Parameters

- `path` - Path to the file to edit
- `old_text` - Exact text to find and replace (must match exactly)
- `new_text` - New text to replace the old text with

## Notes

- The match is exact and case-sensitive
- Whitespace and indentation must match exactly
- The target text must appear exactly once
- For multiple replacements, provide more context to make each match unique

# `description`

# `name`

# `parameters`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
