edit_lines_in_symbol
Perform symbol-scoped string replacement inside a function, method, or class without reading the file first.
Instructions
Exact string-replace inside an indexed symbol's body (like Edit but symbol-scoped, no Read first needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_name | Yes | Function/method/class name to edit inside. | |
| old_string | Yes | Exact text to find inside the symbol body (must be unique within the symbol unless replace_all=true). | |
| new_string | Yes | Replacement text. | |
| file_path | No | Optional file path to disambiguate symbols. | |
| replace_all | No | If true, replace every occurrence in the symbol body (default false). | |
| project | No | Project name/path (default: active). |