rename
Renames a symbol project-wide by detecting all references semantically, avoiding manual edits. Provides a preview of affected file:line locations before applying changes.
Instructions
Rename the symbol at a 0-based position project-wide (semantic — every reference, not a sed). PREVIEW by default (affected file:line); apply=true writes. Use instead of editing call sites by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 0-based line. | |
| path | Yes | Source file containing the symbol. | |
| apply | No | Write to disk (default false = preview). | |
| backend | No | ||
| newName | Yes | New name. | |
| character | Yes | 0-based column. | |
| maxResults | No | ||
| projectPath | No |