building.get_history
Overview
- [Build Mode Only] Returns whether undo/redo are available, plus the build commands issued through the CLI in the current build-mode session. Build commands issued through the game UI are NOT listed - the underlying command objects carry no name, so the real undo history cannot be enumerated. The log holds at most 64 entries and is cleared when build mode is left.
Metadata
| Field | Value |
|---|---|
| Display | Get Build History |
| Category | building |
| Access | Public |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| limit | int | no | 20 | Maximum number of log entries to return, most recent first-in-order (1-64) |
Usage
await inzoi.cli.execute('building.get_history', {
limit: 20, // optional
});