rename_symbol
Rename an identifier across MQL files using whole-word matching. Preview changes with dry-run mode, or apply them directly to update source code in a specified project folder.
Instructions
Rename a symbol across MQL files (whole-word match). dry_run=True previews only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | New identifier. | |
| old | Yes | Identifier to rename (whole-word match). | |
| root | Yes | Absolute path to the project folder to scan recursively for MQL files. | |
| dry_run | No | true = preview the change and write nothing; false = apply it to the files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||