edit_code
Replace exact code snippets to modify functions or blocks, avoiding full-file overwrites.
Instructions
QUICK EDIT: Replace a specific code snippet with a new one. AI should use this tool to modify functions or code blocks without overwriting the entire file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newCode | Yes | New code to replace with | |
| oldCode | Yes | Old code to replace (must match exactly) | |
| filePath | Yes | File path | |
| allow_external_access | No | Set to true to allow modifying files outside the project root. User must explicitly approve this action. |