Build precise AI agents that edit code fast without full file rewrites using Morph’s edit_file tool
read_file: Get Context Before Editing
codebase_search: Find What to Edit
grep_search: Find Exact Matches
list_dir: Explore Directory Structure
codebase_search
or grep_search
read_file
before editingedit_file
// ... existing code ...
patternedit_file
calls in sequence. For failed edits, read the file again and
provide more context around your changes.