The terminal drivers this Bentrix knows: listed, paired by a code, forgotten; where the driver runs and how it is reached; its settings read.
Reached from a connected client as client.drivers in Python, client.drivers in JavaScript, client.drivers() in Rust — each tool below shows its call in every language.
driver_forget#
Ask the person to forget a driver
Asks the person, on a card in Bentrix's window naming this agent, to forget a driver elsewhere; Allow forgets it as Settings > Drivers' Forget does, and it must be paired again to be reached. Answers a job.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
driver | string | yes | — | The driver's key, as drivers_list gives it. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "driver_forget",
"arguments": {
"driver": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drivers
def driver_forget(self, driver: str) -> _Job[Dict[str, Any]]JavaScript
client.drivers
driverForget(args)C#
client.Drivers
public Task<Job> DriverForget(string driver, CancellationToken ct = default)Go
client.Drivers
func (a *DriversAPI) DriverForget(ctx context.Context, args DriversDriverForgetArgs) (*Job, error)Java
client.drivers
public Job driverForget(DriverForgetArgs args)C++
client.drivers
Job driver_forget(const DriverForgetArgs &args)Julia
client.drivers
driver_forget = (driver)R
client$drivers
`driver_forget` = function(driver)Rust
client.drivers()
pub fn driver_forget(&self, args: DriversDriverForgetArgs) -> Result<Job<'a>, Error>driver_pair#
Pair with a driver elsewhere
Pairs with a terminal driver on another computer of this network, as Settings > Drivers' Pair does: its address and the one-use code it shows on its own computer, where the person allows it. Answers that pairing is under way; the driver appears in drivers_list once paired.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
address | string | yes | — | The driver's address on this network, host:port. |
code | string | yes | — | The one-use code the driver shows on its own computer. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "driver_pair",
"arguments": {
"address": "…",
"code": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drivers
def driver_pair(self, address: str, code: str) -> Dict[str, Any]JavaScript
client.drivers
driverPair(args)C#
client.Drivers
public Task<JsonNode?> DriverPair(string address, string code, CancellationToken ct = default)Go
client.Drivers
func (a *DriversAPI) DriverPair(ctx context.Context, args DriversDriverPairArgs) (any, error)Java
client.drivers
public Object driverPair(DriverPairArgs args)C++
client.drivers
Json driver_pair(const DriverPairArgs &args)Julia
client.drivers
driver_pair = (address, code)R
client$drivers
`driver_pair` = function(address, code)Rust
client.drivers()
pub fn driver_pair(&self, args: DriversDriverPairArgs) -> Result<Value, Error>driver_set_inside#
Run the driver inside Bentrix, or apart
Sets where this computer's driver runs, as Settings > Drivers' Run the driver inside Bentrix does: inside Bentrix's own process (one process fewer), or as a process of its own (the default: a fault of the driver's never closes Bentrix). Takes effect the next time the driver starts. Answers the drivers.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
inside | boolean | yes | — | True runs the driver inside Bentrix's own process; false (the default) as a process of its own. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "driver_set_inside",
"arguments": {
"inside": true
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drivers
def driver_set_inside(self, inside: bool) -> Dict[str, Any]JavaScript
client.drivers
driverSetInside(args)C#
client.Drivers
public Task<JsonNode?> DriverSetInside(bool inside, CancellationToken ct = default)Go
client.Drivers
func (a *DriversAPI) DriverSetInside(ctx context.Context, args DriversDriverSetInsideArgs) (any, error)Java
client.drivers
public Object driverSetInside(DriverSetInsideArgs args)C++
client.drivers
Json driver_set_inside(const DriverSetInsideArgs &args)Julia
client.drivers
driver_set_inside = (inside)R
client$drivers
`driver_set_inside` = function(inside)Rust
client.drivers()
pub fn driver_set_inside(&self, args: DriversDriverSetInsideArgs) -> Result<Value, Error>driver_set_rendezvous#
Set the drivers' rendezvous
Sets the rendezvous a driver elsewhere is reached through, as Settings > Drivers' rendezvous row does; empty is Bentrix's own. Answers the drivers, or the row's own refusal of what was typed.
| Argument | Type | Required | Default | What it is |
|---|---|---|---|---|
host | string | yes | — | The rendezvous host the drivers elsewhere are reached through; empty for Bentrix's own. |
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "driver_set_rendezvous",
"arguments": {
"host": "…"
},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drivers
def driver_set_rendezvous(self, host: str) -> Dict[str, Any]JavaScript
client.drivers
driverSetRendezvous(args)C#
client.Drivers
public Task<JsonNode?> DriverSetRendezvous(string host, CancellationToken ct = default)Go
client.Drivers
func (a *DriversAPI) DriverSetRendezvous(ctx context.Context, args DriversDriverSetRendezvousArgs) (any, error)Java
client.drivers
public Object driverSetRendezvous(DriverSetRendezvousArgs args)C++
client.drivers
Json driver_set_rendezvous(const DriverSetRendezvousArgs &args)Julia
client.drivers
driver_set_rendezvous = (host)R
client$drivers
`driver_set_rendezvous` = function(host)Rust
client.drivers()
pub fn driver_set_rendezvous(&self, args: DriversDriverSetRendezvousArgs) -> Result<Value, Error>driver_settings#
Read the driver's settings
What Settings > Driver shows, as this computer's driver last answered it: Keep the driver running, run as this user or as a Windows service, the applications paired with it (their capabilities, whether connected, whether paired from another computer), a pairing code and an application asking to pair, Reachable on this network and over the internet with the rendezvous, Allow trading through this driver, Manage MetaTrader's settings myself, the build and the log folder. Asks the driver again; an answer older than a moment is what it said last. Who may reach this computer's terminals, and how, is the person's to change, never an agent's.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "driver_settings",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drivers
def driver_settings(self) -> Dict[str, Any]JavaScript
client.drivers
driverSettings(args)C#
client.Drivers
public Task<JsonNode?> DriverSettings(CancellationToken ct = default)Go
client.Drivers
func (a *DriversAPI) DriverSettings(ctx context.Context) (any, error)Java
client.drivers
public Object driverSettings()C++
client.drivers
Json driver_settings()Julia
client.drivers
driver_settings = ()R
client$drivers
`driver_settings` = function()Rust
client.drivers()
pub fn driver_settings(&self) -> Result<Value, Error>drivers_list#
Read the drivers
Answers the terminal drivers elsewhere this install remembers - each one's key, the label it gave itself and the address it was paired at - the rendezvous in force, and this computer's driver's update setting.
Takes no arguments.
MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "drivers_list",
"arguments": {},
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {}
}
}
}Python
client.drivers
def list(self) -> Dict[str, Any]JavaScript
client.drivers
list(args)C#
client.Drivers
public Task<JsonNode?> List(CancellationToken ct = default)Go
client.Drivers
func (a *DriversAPI) List(ctx context.Context) (any, error)Java
client.drivers
public Object list()C++
client.drivers
Json list()Julia
client.drivers
list = ()R
client$drivers
`list` = function()Rust
client.drivers()
pub fn list(&self) -> Result<Value, Error>