Read an MQL5 source file
read_fileReads a text file such as .mq5 or .mqh from a sandboxed MQL5 data folder to inspect MQL5 source code.
Instructions
Reads a text file (e.g. .mq5/.mqh) from under the sandboxed MQL5 data folder.
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": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | e.g. "Experts/Advisors/MyEA.mq5" |