Skip to content

getItemsById

getItemsById(itemIds, timeoutMs?): Promise<InventoryResultData>

Captures the state of some items of the current user, by instance id. Resolves with those items only.

Read-only. The result can be serialized with serializeItems() and checked by another player. Rejects when an id is negative or too large, when Steam reports an error, or when no answer arrives in time.

bigint[]

The instance ids of the items to read, as bigint values.

number | null

How long to wait for Steam, in milliseconds. Defaults to 30000.

Promise<InventoryResultData>

the requested items that the user owns.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.