max_bridge_mock
Generate max-bridge-mock.js: a window.WebApp emulator to develop MAX mini-apps in a normal browser on localhost.
Emulates initData/initDataUnsafe (signed if a test token is given), BackButton (Esc), DeviceStorage and
SecureStorage (localStorage, 10-key cap), BiometricManager, HapticFeedback, NfcManager, ScreenCapture,
requestContact with a valid hash, openLink/downloadFile/shareMaxContent click requirements and per-platform
restrictions. Logs every call. Use only on localhost.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "max_bridge_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG) | |
| phone | No | 79990000000 | |
| user_id | No | ||
| platform | No | Platform to emulate: limits which Bridge features work | android |
| first_name | No | ||
| entry_point | No | default | |
| start_param | No | Emulated ?startapp= value | |
| test_bot_token | No | TEST token: initData and requestContact hash will be validly signed with it |