Skip to content

downloadUgc

downloadUgc(handle, priority): Promise<UgcDownloadResult>

Downloads a user-generated content (UGC) file, such as a Workshop file, by its handle. Needs init(). This starts network transfers. Resolves with the file’s details once the download completes; runCallbacks(), which init() already calls, drives the result. Rejects when handle is not a non-negative BigInt below 2^64, or when Steam reports an error. There is no timeout: if Steam never answers, the Promise stays pending and the outcome is unknown.

bigint

The UGC handle as a BigInt.

number

0 downloads at once. A higher value waits until downloads with lower values finish; equal values download together (from the SDK header).

Promise<UgcDownloadResult>

the file’s handle, app id, size, file name and owner.

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.