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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"old": "<old>",
"new": "<new>",
"root": "<root>"
},
"name": "rename_symbol"
}
}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 | |||