phone.open
Overview
- Opens a smartphone app the same way as tapping its icon, opening the phone first when it is closed. Unlike a tap it never closes an app that is already open; already_open is true then. Script apps (insurance, loan, adoption, city move) run their scripts on every call. Some apps show up only after the game answers (career, school), so re-check is_open with phone.list_apps. Failure messages start with UnknownApp (also for icons hidden on the home screen), PhoneUnavailable, InputBlocked, PhoneRestricted, WorldMode, CityTravel or GrowthStep, with the same reason phone.list_apps reports. UI only: callable from UI mods, the console and MCP, not from simulation-thread Lua.
Metadata
| Field | Value |
|---|---|
| Display | Open Phone App |
| Category | phone |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app | name | yes | — | App id from phone.list_apps, e.g. PocketMarket |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
app_id | string | yes | Opened app id |
already_open | bool | yes | True when nothing had to be opened |
ui_types | array<object> | yes | EB1UIType names the app opens |
Usage
await inzoi.cli.execute('phone.open', {
app: '',
});