Get MetaTrader 5 environment info
get_environment_infoResolves the MetaTrader 5 install and MQL5 data folder. Call first to locate paths, and again with installDirHint if results are ambiguous or error.
Instructions
Resolves (or re-resolves) the MetaEditor/MetaTrader 5 installation and its MQL5 data folder. Call this first, and again if you get an 'ambiguous' or 'error' result, passing installDirHint.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_environment_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| installDirHint | No | Absolute path to the MT5 install dir, e.g. C:\Program Files\MetaTrader 5 |