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'] }).
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). |