Skip to main content

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

FieldValue
DisplayGet Build History
Categorybuilding
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
limitintno20Maximum number of log entries to return, most recent first-in-order (1-64)

Usage

await inzoi.cli.execute('building.get_history', {
limit: 20, // optional
});