inspect_source
Analyze MQL4/5 source files to extract input declarations, resolve include trees, parse doc blocks, locate symbol usages, and detect duplicate magic numbers.
Instructions
Read-only facts about MQL source: input declarations, #include tree (with missing files), MetaEditor doc blocks, symbol usages, duplicate magic numbers.
Replaces extract_inputs / resolve_includes / extract_doc / find_symbol / find_magic_collision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute project folder to scan (for symbol, magic); defaults to the source file folder. | |
| limit | No | Max symbol matches to return. | |
| source | No | Absolute path to one .mq4/.mq5/.mqh file (for inputs, includes, docs). | |
| symbol | No | Identifier to grep for (whole word, comments and strings skipped); enables the "symbol" aspect. | |
| aspects | No | Which analyses to run; defaults to inputs, includes and docs for a source, plus symbol when `symbol` is given and magic when only `root` is given. | |
| mql_root | No | MQL root used to resolve <angle> includes; defaults to the active terminal. | |
| var_pattern | No | Substring identifying magic-number variables for the "magic" aspect. | Magic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||