deploy
Copies compiled .ex4/.ex5 files to Experts/ and .mqh headers to Include/ in MetaTrader, overwriting existing files.
Instructions
Copy a compiled EA into the terminal's Experts/ folder or a .mqh header into Include/, chosen by extension.
Overwrites an existing file of the same name. Use compile_and_deploy to build and copy in one step.
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": {
"file": "<file>"
},
"name": "deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to a compiled .ex4/.ex5 (goes to Experts/) or a .mqh header (goes to Include/). | |
| name | No | File name to use in the target folder; defaults to the source file name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||