replace_symbol_body
Updates the body of a specified symbol by providing a new code section, using the name path of the symbol and the relative file path. Ensures proper indentation and direct symbol definition in the new body.
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. |