Skip to content
masterclass Buddy

Deep Agents · Function

edit_file

edit_file is a Deep Agents filesystem tool that performs exact string replacements in files. You can pause before each edit with interrupt_on so a person can review or change the call.

Last updated

Syntax

create_deep_agent(..., interrupt_on={"edit_file": True})

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • create_deep_agent
  • FilesystemMiddleware
  • excluded_tools
  • interrupt_on
  • write_file
  • delete
  • grep

Source: Deep Agents overview. Checked 2026-11-03.