replace_symbol_body
Update a symbol's implementation by providing its name path, file path, and new body. Locates the symbol and substitutes its body with the given 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |