building.reset_site_to_default
Overview
- [Build Mode Only] DESTRUCTIVE. Discards the current layout and restores the site's shipped default asset, settling the price difference against the household wallet. This is undoable with building.undo, but ONLY until build mode is left. Requires confirm_phrase="reset to default" and phase == 'ready' (see build.get_mode_state).
Metadata
| Field | Value |
|---|---|
| Display | Reset Site To Default |
| Category | building |
| Access | ScriptCheat |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| confirm_phrase | string | yes | — | Must be exactly "reset to default". Guards against accidental invocation. |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
committed | bool | yes | Whether the command entered the undo history (i.e. it succeeded) |
undoable | bool | yes | Whether building.undo can revert it |
has_undo | bool | yes | Undo available after execution |
has_redo | bool | yes | Redo available after execution |
Usage
await inzoi.cli.execute('building.reset_site_to_default', {
confirm_phrase: '',
});