> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zocomputer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit file

> Edit a text file using a sequence of precise edit operations.

{/* Tool: edit_file */}

## Parameters

<ParamField path="target_file" type="string" required={true}>
  The absolute path to the file to edit.
</ParamField>

<ParamField path="operations" type="object[]" required={true}>
  A list of operations to apply to the file: replace\_block, insert\_after, insert\_before, delete\_block, append\_line.
</ParamField>
