Skip to content

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.

  • workshop.getSubscribedItems(): read-only list of subscribed publishedFileIds.
  • workshop.state(itemId): read-only number of combined EItemState flags for the item on this client.
  • workshop.installInfo(itemId): folder, sizeOnDisk, timestamp of installed content, or null. Read-only as an API call, but see the note below.
  • workshop.downloadInfo(itemId): progress of a pending download, or null.
  • workshop.subscribe(itemId) and workshop.unsubscribe(itemId): both return promises.
  • workshop.download(itemId, highPriority): returns boolean. 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?) and workshop.removeItemFromFavorites(itemId, appId?): the user’s favorites. appId defaults to the client’s app.
  • workshop.startPlaytimeTracking(itemIds) and workshop.stopPlaytimeTracking(itemIds): take a non-empty list of ids. Start and stop in pairs.
  • Read-only: getSubscribedItems, state, downloadInfo. Run freely.
  • Account state: subscribe adds the item to the user’s subscriptions. unsubscribe removes 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, removeItemFromFavorites change 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. Read getUserItemVote first and report the current vote.
  • Playtime tracking: startPlaytimeTracking and stopPlaytimeTracking start 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: download fetches content to disk. highPriority: true also interrupts other Steam downloads, so only use it when the user asks.
  • Used-items list: Steam’s documentation says GetItemInstallInfo records 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.
  1. Read first: getSubscribedItems() and state(itemId) for each target. Report what is already subscribed or installed.
  2. For a change, show the target ids, the action, and the expected effect. Wait for confirmation.
  3. Perform the action, then re-read state(itemId) and downloadInfo(itemId) (for downloads) to confirm the result. Report the observed state.
  4. For installation location, report installInfo(itemId).folder as returned. Do not move or edit files in it from this skill.
  • Do not treat state flags as a single value; they combine, so test with bitwise checks.
  • A download that returns true has been queued, not finished. Confirm with downloadInfo or state before 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.