steamworks-workshop-client-state
Complete the setup in steamworks-js first. The Steam client must be running and logged in to the account whose subscriptions are being managed.
Calls (from the installed typings)
Section titled “Calls (from the installed typings)”workshop.getSubscribedItems(): read-only list of subscribedpublishedFileIds.workshop.state(itemId): read-only number of combinedEItemStateflags for the item on this client.workshop.installInfo(itemId):folder,sizeOnDisk,timestampof installed content, ornull. Read-only as an API call, but see the note below.workshop.downloadInfo(itemId): progress of a pending download, ornull.workshop.subscribe(itemId)andworkshop.unsubscribe(itemId): both return promises.workshop.download(itemId, highPriority): returnsboolean. High priority pauses other Steam downloads.workshop.setUserItemVote(itemId, voteUp): votes up (true) or down (false) as the logged-in user. Resolves when Steam confirms.workshop.getUserItemVote(itemId): read-only{ votedUp, votedDown, skipped }for the same user.workshop.addItemToFavorites(itemId, appId?)andworkshop.removeItemFromFavorites(itemId, appId?): the user’s favorites.appIddefaults to the client’s app.workshop.startPlaytimeTracking(itemIds)andworkshop.stopPlaytimeTracking(itemIds): take a non-empty list of ids. Start and stop in pairs.
Impact
Section titled “Impact”- Read-only:
getSubscribedItems,state,downloadInfo. Run freely. - Account state:
subscribeadds the item to the user’s subscriptions.unsubscriberemoves it, and per Steam’s documentation the content is removed when the game quits. Show the id and wait for a go-ahead. - Account state, public:
setUserItemVote,addItemToFavorites,removeItemFromFavoriteschange what the logged-in user has voted or favorited, and the item’s public score or favorites count can move with it. Show the item, the vote or favorite change, and the account, then wait for a go-ahead. ReadgetUserItemVotefirst and report the current vote. - Playtime tracking:
startPlaytimeTrackingandstopPlaytimeTrackingstart and stop Steam counting the user’s playing time against the listed items. The SDK header describes it; the exact effect is unverified against a live client, so say so. Never start tracking without a planned stop. - Local files:
downloadfetches content to disk.highPriority: truealso interrupts other Steam downloads, so only use it when the user asks. - Used-items list: Steam’s documentation says
GetItemInstallInforecords the item in the user’s used list. This is not verified in this skill; check the Steamworks documentation before relying on it, and tell the user before reading install info for items they did not ask about.
- Read first:
getSubscribedItems()andstate(itemId)for each target. Report what is already subscribed or installed. - For a change, show the target ids, the action, and the expected effect. Wait for confirmation.
- Perform the action, then re-read
state(itemId)anddownloadInfo(itemId)(for downloads) to confirm the result. Report the observed state. - For installation location, report
installInfo(itemId).folderas returned. Do not move or edit files in it from this skill.
- Do not treat
stateflags as a single value; they combine, so test with bitwise checks. - A download that returns
truehas been queued, not finished. Confirm withdownloadInfoorstatebefore reporting it as installed.
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.
© 2026 HagiCode | Powered By hagilight-starlight@0.23.0 | Branch: main | Commit: 7164ec7 | Built:
