replace_symbol_body
Update symbol definitions in code by replacing the body with a new one. Specify the symbol's name path, relative file path, and the new body content for precise edits in your codebase.
Instructions
Replaces the body of the symbol with the given name_path
.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | The new symbol body. Important: Begin directly with the symbol definition and provide no leading indentation for the first line (but do indent the rest of the body according to the context). | |
name_path | Yes | For finding the symbol to replace, same logic as in the `find_symbol` tool. | |
relative_path | Yes | The relative path to the file containing the symbol. |