Skip to main content

game.list_saves

Overview

  • Returns save slots sorted by saved_time descending (newest first), one page at a time. Feed 'folder' (and 'file' when it differs) into game.load. The cached slot order is NOT trusted; the list is re-sorted by saved_time here. PAGED: only 'limit' entries (20 by default) are returned starting at 'offset'. A profile can hold hundreds of slots, so an unbounded dump would be tens of kilobytes per call. Because the payload is a bare array there is nowhere to put paging metadata inside it, so the total count, the offset and the next offset are reported in the result MESSAGE, e.g. '20 of 366 save slot(s) (offset 0, limit 20). More available: pass offset=20 for the next page.' By default this reads the already-scanned slot list and does no disk IO. Pass refresh=true only when the save directory changed underneath the client - a rescan reads a thumbnail file per slot, rebuilds every slot object (invalidating the cache the load-list UI holds) and deletes incomplete fork directories. Higher-version saves are listed (see is_higher_version); loading one opens a fork-warning popup that ui.dismiss refuses to touch, so clear it with ui.click_popup_button.

Metadata

FieldValue
DisplayList Save Files
Categorygame
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
include_autosaveboolnotrueInclude AutoSave slots
include_brokenboolnofalseInclude slots flagged as broken
limitintno20Maximum number of entries to return [1-500].
offsetintno0Index of the first entry to return, 0-based. Negative values are treated as 0. Use the next offset reported in the result message to page.
refreshboolnofalseRescan the save directory from disk before listing. Blocking disk IO with side effects (rebuilds every slot object and deletes incomplete fork directories) - leave false unless the files changed.

Returns

Returns a JSON array; each element is an object with the following fields:

FieldTypeRequiredDescription
folderstringyesSave folder name (YYYYMMDD-HHMMSS, UTC)
filestringyesSave file name
slotstringyesUser visible slot name
save_typestringyessave | auto_save | fate
is_autosaveboolyesWhether this slot is an auto save
first_namestringyesPlayed character first name
last_namestringyesPlayed character last name
mapstringyesMap name recorded in the save
saved_timestringyesISO8601 UTC timestamp
game_versionintyesGame version the save was written with
is_brokenboolyesWhether the slot's binary type is unset, i.e. its header could not be read. Computed here with the same check the load-list UI makes, not read from the UI's cached flag (which is only filled in once that UI has drawn the entry)
is_higher_versionboolyesWhether game_version is greater than this build's revision. Always false on a build with no revision injected (local/editor builds), which is the same rule the load-list UI uses
is_forkboolyesWhether the slot is a fork slot

Usage

await inzoi.cli.execute('game.list_saves', {
include_autosave: true, // optional
include_broken: false, // optional
limit: 20, // optional
offset: 0, // optional
refresh: false, // optional
});