Call `window.electronAPI.<method>(...args)`
invoke_electron_apiInvoke any method exposed by the preload bridge to test IPC handlers and retrieve data from Electron's main process, accepting arguments and returning awaited results.
Instructions
Invoke any method exposed by the preload bridge. Returns the method's result (awaited if it's a promise). Use to test IPC handlers directly, e.g. invoke_electron_api({ method: 'dbCheckConnectivity' }) or invoke_electron_api({ method: 'getConfig', args: ['theme'] }).
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": {
"id": "<id>",
"method": "<method>"
},
"name": "invoke_electron_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id. | |
| args | No | Positional args. Must be JSON-serialisable. | |
| method | Yes | Method name on `window.electronAPI`. | |
| target | No | Target id (default: first page). |