rename_symbol
Rename a code symbol safely across its definition and all resolved references, leaving strings, comments, and unrelated same-named symbols untouched. Review a dry-run plan before applying.
Instructions
Rename a symbol at its definition and every reference that resolves to it (identifier nodes only: strings, comments and same-named symbols elsewhere are untouched; ambiguous references are listed and skipped). Defaults to dry_run=True: review the plan, then call again with dry_run=False.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | No | ||
| dry_run | No | ||
| new_name | Yes | ||
| include_tests | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |