replace_symbol_body
Replace a symbol’s body by specifying its name path, relative file path, and new content. Ensures proper formatting and alignment for seamless symbol updates in code.
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. |