replace_symbol
Update a function, class, or interface by providing only its new implementation. Avoids reading the entire file first, saving context and token usage.
Instructions
Replace the full body of a named function, class, or interface. The AI sends only the new implementation — no need to read the full file first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative file path | |
| symbol | Yes | Exact name of the function, class, or interface to replace | |
| new_body | Yes | Complete new implementation (including the function signature line) |