get_mock_calls
Retrieve registered mock call arguments to verify intercepted requests, using the same target as the mock; supports browser URL/method and Electron API/function filters.
Instructions
Read current call arguments for a mock in the active session. Use the same target as mock. mockType defaults to browser in WebDriver sessions and is required in Electron sessions. Electron mocks require apiName and funcName; browser mocks require url and accept method. Appium sessions are unsupported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Required for mockType browser: URL glob to intercept, such as **/api/todos. | |
| method | No | Optional for mockType browser: request method filter, such as get. | |
| apiName | No | Required for mockType electron: API module, such as dialog, app, or clipboard. | |
| funcName | No | Required for mockType electron: API function, such as showOpenDialog or getName. | |
| mockType | No | Mock type: electron or browser. Defaults to browser in WebDriver sessions; required in Electron sessions. Browser mocks intercept network requests by url glob and require a BiDi-enabled session (start_session with capabilities: { webSocketUrl: true }); in Electron sessions they additionally require the session to have negotiated BiDi. Electron mocks require apiName and funcName. Appium sessions are unsupported. |