mt4_logs
Get the tail of a MetaTrader 4 terminal's newest log file, with optional regex pattern filtering and configurable line count.
Instructions
Return the tail of a terminal's newest log file.
Args: terminal: terminal id. pattern: optional case-insensitive regex to grep (e.g. "login|error"). lines: number of trailing lines to return (1-1000).
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": {
"terminal": "<terminal>"
},
"name": "mt4_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terminal | Yes | ||
| pattern | No | ||
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |