syntax_check
Validate MQL4/5 source file syntax to identify errors before compilation. Accepts an absolute Windows path and optional timeout.
Instructions
DEPRECATED (removed in 0.6.0): use compile(source, syntax_only=true).
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": {
"source": "<source>"
},
"name": "syntax_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Absolute Windows path to the .mq4/.mq5/.mqh source file. | |
| timeout_sec | No | Give up after this many seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||