Skip to content

downloadUgcToLocation

downloadUgcToLocation(handle, location, priority): Promise<UgcDownloadResult>

Downloads a UGC file like downloadUgc(), but to the path location. Needs init(). This starts network transfers. The header gives no detail on the location format, so the result of a custom location is unverified against a live Steam client. Rejects when handle is invalid, when location contains a NUL character (nothing is downloaded), or when Steam reports an error. There is no timeout: if Steam never answers, the Promise stays pending.

bigint

The UGC handle as a BigInt.

string

The path to write the file to.

number

0 downloads at once; see downloadUgc().

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.