edit_blocks
Apply multiple search-and-replace edits across files in a single operation to modify code efficiently.
Instructions
Apply multiple search/replace edits in a single call.
Args: edits: List of edit specs, each with: - file_path: Absolute path - old_string: Text to find - new_string: Replacement text - expected_replacements: Match count (default 1) - ignore_whitespace: Flexible whitespace (default False) - normalize_escapes: Unescape \n, \t (default False) error_policy: "fail-fast" | "continue" | "rollback" encoding: File encoding for all edits (utf-8, gbk, gb2312).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | ||
| error_policy | No | fail-fast | |
| encoding | No | utf-8 |