Skip to main content

phone.get_pending_actions

Overview

  • Lists home services requested by the household of entity_id (default: the possessed Zoi) that have not finished yet. state is Waiting (no service Zoi assigned yet), InService (dispatched, travelling or working) or Finishing (leaving). context_id is the id returned by pocket_market.purchase_service and stays the same after dispatch. A finished service disappears from the list; there is no history. Finishing may be skipped when the service Zoi leaves on its own schedule, so treat disappearance from the list as completion. For waiting requests next_attempt_time is the game time of the next dispatch attempt (services whose work would run past midnight wait until 00:00); empty when it can be dispatched now. Requests made by the game itself, such as the automatic babysitter or a fire call, are listed too. Fails with InvalidEntity when entity_id is not a positive integer or not a character.

Metadata

FieldValue
DisplayGet Pending Phone Actions
Categoryphone
AccessPublic
ScopeB2Authority
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdno—Zoi whose household's requests are listed (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
countintyesNumber of requests returned
actionsarray<object>yesUnfinished service requests
actions[].context_idintyesService context id from purchase time; -1 if unknown
actions[].execute_context_idintyesDispatch id; -1 while Waiting
actions[].service_idstringyesService table row id
actions[].statestringyesWaiting, InService or Finishing
actions[].trigger_entity_identityIdyesEntity that requested the service
actions[].site_entity_identityIdyesSite where the service takes place
actions[].next_attempt_ticksintyesWaiting only: game ticks of the next dispatch attempt, 0 when now
actions[].next_attempt_timestringyesWaiting only: next_attempt_ticks as 'Day N HH:MM' (same day numbering as environment.get_time), empty when now

Usage

await inzoi.cli.execute('phone.get_pending_actions', {
entity_id: 0, // optional
});