{
  "schemaVersion": "1.0",
  "item": {
    "slug": "steamcommunity",
    "name": "Steamcommunity",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/bluesyparty-src/steamcommunity",
    "canonicalUrl": "https://clawhub.ai/bluesyparty-src/steamcommunity",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/steamcommunity",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=steamcommunity",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/steamcommunity"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/steamcommunity",
    "agentPageUrl": "https://openagent3.xyz/skills/steamcommunity/agent",
    "manifestUrl": "https://openagent3.xyz/skills/steamcommunity/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/steamcommunity/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Steam Community Inventory Skill",
        "body": "Retrieve and browse a Steam user's inventory, and send/manage trade offers on steamcommunity.com."
      },
      {
        "title": "Setup",
        "body": "Find your Steam ID (SteamID64):\n\nGo to your Steam profile page\nIf your URL is https://steamcommunity.com/profiles/76561198012345678, your Steam ID is 76561198012345678\nIf your URL uses a vanity name like https://steamcommunity.com/id/myname, visit steamid.io and paste your profile URL to get your SteamID64\n\n\n\nGet your Steam Web API key:\n\nGo to https://steamcommunity.com/dev/apikey\nRegister a domain name (any value works, e.g., localhost)\nCopy the API key shown on the page\n\n\n\nGet your Steam session cookies (required for trade offers and bypassing inventory rate limits):\n\nLog in to steamcommunity.com in your browser\nOpen Developer Tools (F12) > Application tab > Cookies > https://steamcommunity.com\nCopy the value of the steamLoginSecure cookie\nCopy the value of the sessionid cookie\n\n\n\nSet environment variables:\nexport STEAM_ID=\"your-steamid64\"\nexport STEAM_API_KEY=\"your-api-key\"\nexport STEAM_COOKIES=\"steamLoginSecure=your-cookie-value\"\nexport STEAM_SESSION_ID=\"your-sessionid-cookie-value\""
      },
      {
        "title": "Usage",
        "body": "All commands use curl to hit the Steam Community inventory endpoint. The context ID is 2 for all standard game inventories."
      },
      {
        "title": "Common App IDs",
        "body": "GameApp IDCS2 / CS:GO730Team Fortress 2440Dota 2570Rust252490PUBG578080Steam Community (trading cards, etc.)753"
      },
      {
        "title": "Get inventory for a game",
        "body": "Replace $APP_ID with the game's App ID (see table above). Context ID is 2 for all standard game inventories.\n\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/$APP_ID/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '.'"
      },
      {
        "title": "Get CS2 inventory",
        "body": "curl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '.'"
      },
      {
        "title": "Get a summary of items (names and quantities)",
        "body": "curl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '[.descriptions[] | {market_hash_name, type}]'"
      },
      {
        "title": "Get item details (asset IDs mapped to descriptions)",
        "body": "curl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '{assets: [.assets[] | {assetid, classid, instanceid, amount}], total: .total_inventory_count}'"
      },
      {
        "title": "Paginated fetch (for inventories over 2000 items)",
        "body": "The API returns a last_assetid field when there are more items. Pass it as start_assetid to get the next page:\n\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000&start_assetid=$LAST_ASSET_ID\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '.'\n\nCheck for more pages by looking at the more_items field in the response (equals 1 if there are more)."
      },
      {
        "title": "Response Format",
        "body": "The inventory endpoint returns JSON with these key fields:\n\nFieldDescriptionassetsArray of items with appid, contextid, assetid, classid, instanceid, amountdescriptionsArray of item metadata: market_hash_name, name, type, icon_url, tradable, marketable, tags, etc.total_inventory_countTotal number of items in the inventorymore_items1 if more pages available (absent otherwise)last_assetidLast asset ID returned; use as start_assetid for next pagesuccess1 if the request succeeded\n\nAssets are linked to descriptions via classid + instanceid."
      },
      {
        "title": "Notes",
        "body": "Rate limits: The community endpoint is heavily rate-limited by IP. Using your own cookies bypasses this for your own inventory. Without cookies, expect IP bans after a few requests (cooldown ~6 hours).\nSpacing: If fetching multiple inventories or pages, wait at least 4 seconds between requests.\ncount parameter: Max value is 5000, but 2000 is recommended to avoid issues.\nContext ID: Use 2 for all standard game inventories. Steam Community items (appid 753) also use context ID 6 for some item types.\nPrivate profiles: Inventory must be set to public, or you must be authenticated as the owner."
      },
      {
        "title": "Trade Offers",
        "body": "Trade offers require an authenticated session (cookies) and a Steam Web API key. The sessionid cookie is sent as both a cookie and a POST body parameter."
      },
      {
        "title": "Partner identification",
        "body": "Trade partners can be identified two ways:\n\nBy SteamID64 — e.g., 76561198012345678. Convert to a 32-bit account ID for the partner field: subtract 76561197960265728 from the SteamID64.\nBy trade URL — e.g., https://steamcommunity.com/tradeoffer/new/?partner=52079950&token=YDAlR4bC. The partner value is the 32-bit account ID. The token is needed when the partner is not on your friends list."
      },
      {
        "title": "Send a trade offer",
        "body": "This sends items from your inventory to another user (and/or requests items from theirs). Each item requires its appid, contextid, and assetid (obtained from the inventory endpoint above).\n\nThe json_tradeoffer parameter is a JSON string describing what each side gives. The me object holds your items to give; the them object holds items you want to receive.\n\n# Set trade parameters\nPARTNER_ACCOUNT_ID=\"52079950\"  # 32-bit account ID (from trade URL or SteamID64 - 76561197960265728)\nPARTNER_STEAM_ID=\"76561198012345678\"  # Full SteamID64 (= 76561197960265728 + PARTNER_ACCOUNT_ID)\nTRADE_TOKEN=\"YDAlR4bC\"         # From partner's trade URL (omit if partner is on your friends list)\nTRADE_MESSAGE=\"Here's the trade we discussed\"\n\n# Build the json_tradeoffer payload\n# me.assets = items YOU are giving, them.assets = items you WANT from them\nJSON_TRADEOFFER='{\n  \"newversion\": true,\n  \"version\": 4,\n  \"me\": {\n    \"assets\": [\n      {\"appid\": 730, \"contextid\": \"2\", \"amount\": 1, \"assetid\": \"YOUR_ASSET_ID\"}\n    ],\n    \"currency\": [],\n    \"ready\": false\n  },\n  \"them\": {\n    \"assets\": [\n      {\"appid\": 730, \"contextid\": \"2\", \"amount\": 1, \"assetid\": \"THEIR_ASSET_ID\"}\n    ],\n    \"currency\": [],\n    \"ready\": false\n  }\n}'\n\n# Send with trade token (non-friend)\ncurl -s \"https://steamcommunity.com/tradeoffer/new/send\" \\\n  -X POST \\\n  -H \"Cookie: sessionid=$STEAM_SESSION_ID; $STEAM_COOKIES\" \\\n  -H \"Referer: https://steamcommunity.com/tradeoffer/new/?partner=$PARTNER_ACCOUNT_ID&token=$TRADE_TOKEN\" \\\n  -H \"Origin: https://steamcommunity.com\" \\\n  -d \"sessionid=$STEAM_SESSION_ID\" \\\n  -d \"serverid=1\" \\\n  -d \"partner=$PARTNER_STEAM_ID\" \\\n  --data-urlencode \"tradeoffermessage=$TRADE_MESSAGE\" \\\n  --data-urlencode \"json_tradeoffer=$JSON_TRADEOFFER\" \\\n  -d \"captcha=\" \\\n  --data-urlencode \"trade_offer_create_params={\\\"trade_offer_access_token\\\":\\\"$TRADE_TOKEN\\\"}\" \\\n  | jq '.'\n\nTo send to a friend (no token needed), omit the token from the Referer and set trade_offer_create_params to {}:\n\ncurl -s \"https://steamcommunity.com/tradeoffer/new/send\" \\\n  -X POST \\\n  -H \"Cookie: sessionid=$STEAM_SESSION_ID; $STEAM_COOKIES\" \\\n  -H \"Referer: https://steamcommunity.com/tradeoffer/new/?partner=$PARTNER_ACCOUNT_ID\" \\\n  -H \"Origin: https://steamcommunity.com\" \\\n  -d \"sessionid=$STEAM_SESSION_ID\" \\\n  -d \"serverid=1\" \\\n  -d \"partner=$PARTNER_STEAM_ID\" \\\n  --data-urlencode \"tradeoffermessage=$TRADE_MESSAGE\" \\\n  --data-urlencode \"json_tradeoffer=$JSON_TRADEOFFER\" \\\n  -d \"captcha=\" \\\n  -d \"trade_offer_create_params={}\" \\\n  | jq '.'\n\nThe response returns a tradeofferid on success:\n\n{\"tradeofferid\": \"1234567890\", \"needs_mobile_confirmation\": true, \"needs_email_confirmation\": false}\n\nSending a gift (no items requested in return)\n\nSet them.assets to an empty array []:\n\nJSON_TRADEOFFER='{\n  \"newversion\": true,\n  \"version\": 4,\n  \"me\": {\n    \"assets\": [\n      {\"appid\": 730, \"contextid\": \"2\", \"amount\": 1, \"assetid\": \"YOUR_ASSET_ID\"}\n    ],\n    \"currency\": [],\n    \"ready\": false\n  },\n  \"them\": {\n    \"assets\": [],\n    \"currency\": [],\n    \"ready\": false\n  }\n}'"
      },
      {
        "title": "Get trade offers (sent and received)",
        "body": "Uses the official Steam Web API with your API key.\n\n# Get all active trade offers (sent and received)\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=$STEAM_API_KEY&get_sent_offers=1&get_received_offers=1&active_only=1&get_descriptions=1&language=english\" \\\n  | jq '.'\n\n# Get only received active offers\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=$STEAM_API_KEY&get_sent_offers=0&get_received_offers=1&active_only=1&get_descriptions=1&language=english\" \\\n  | jq '.response.trade_offers_received'\n\n# Get only sent active offers\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=$STEAM_API_KEY&get_sent_offers=1&get_received_offers=0&active_only=1&get_descriptions=1&language=english\" \\\n  | jq '.response.trade_offers_sent'"
      },
      {
        "title": "Get a specific trade offer",
        "body": "curl -s \"https://api.steampowered.com/IEconService/GetTradeOffer/v1/?key=$STEAM_API_KEY&tradeofferid=$TRADE_OFFER_ID&language=english&get_descriptions=1\" \\\n  | jq '.response.offer'"
      },
      {
        "title": "Get trade offers summary (counts)",
        "body": "curl -s \"https://api.steampowered.com/IEconService/GetTradeOffersSummary/v1/?key=$STEAM_API_KEY&time_last_visit=0\" \\\n  | jq '.response'"
      },
      {
        "title": "Accept a trade offer",
        "body": "Accepting uses the Steam Community web endpoint (not the Web API). You need the tradeofferid and the partner's SteamID64.\n\nTRADE_OFFER_ID=\"1234567890\"\nPARTNER_STEAM_ID=\"76561198012345678\"\n\ncurl -s \"https://steamcommunity.com/tradeoffer/$TRADE_OFFER_ID/accept\" \\\n  -X POST \\\n  -H \"Cookie: sessionid=$STEAM_SESSION_ID; $STEAM_COOKIES\" \\\n  -H \"Referer: https://steamcommunity.com/tradeoffer/$TRADE_OFFER_ID/\" \\\n  -d \"sessionid=$STEAM_SESSION_ID\" \\\n  -d \"tradeofferid=$TRADE_OFFER_ID\" \\\n  -d \"serverid=1\" \\\n  -d \"partner=$PARTNER_STEAM_ID\" \\\n  -d \"captcha=\" \\\n  | jq '.'"
      },
      {
        "title": "Cancel a sent trade offer",
        "body": "curl -s \"https://api.steampowered.com/IEconService/CancelTradeOffer/v1/\" \\\n  -X POST \\\n  -d \"key=$STEAM_API_KEY\" \\\n  -d \"tradeofferid=$TRADE_OFFER_ID\""
      },
      {
        "title": "Decline a received trade offer",
        "body": "curl -s \"https://api.steampowered.com/IEconService/DeclineTradeOffer/v1/\" \\\n  -X POST \\\n  -d \"key=$STEAM_API_KEY\" \\\n  -d \"tradeofferid=$TRADE_OFFER_ID\""
      },
      {
        "title": "Get trade history",
        "body": "curl -s \"https://api.steampowered.com/IEconService/GetTradeHistory/v1/?key=$STEAM_API_KEY&max_trades=10&get_descriptions=1&language=english&include_failed=0\" \\\n  | jq '.response.trades'"
      },
      {
        "title": "Trade offer states reference",
        "body": "ValueStateDescription1InvalidInvalid or unknown state2ActiveSent, neither party has acted yet3AcceptedItems were exchanged4CounteredRecipient made a counter offer5ExpiredNot accepted before the deadline6CanceledSender canceled the offer7DeclinedRecipient declined the offer8InvalidItemsItems in the offer are no longer available9CreatedNeedsConfirmationAwaiting mobile/email confirmation before sending10CanceledBySecondFactorCanceled via email/mobile confirmation11InEscrowOn hold; items removed from both inventories, will deliver automatically"
      },
      {
        "title": "Trade offer notes",
        "body": "Mobile confirmation: Most trade offers require Steam Mobile Authenticator confirmation. The send response will indicate needs_mobile_confirmation: true if so.\nTrade holds: Accounts without Steam Guard Mobile Authenticator enabled for 7+ days will have a 15-day trade hold on all trades.\nPartner's inventory: To see what the partner has available to trade, fetch their inventory the same way as yours (using their SteamID64 instead of $STEAM_ID). Their inventory must be public or you must be friends.\nThe partner field: The send endpoint expects the full SteamID64 in the partner POST parameter. The trade URL's partner query parameter is the 32-bit account ID.\nCookie expiry: The sessionid and steamLoginSecure cookies expire when your Steam session ends. Refresh them from your browser when they stop working."
      }
    ],
    "body": "Steam Community Inventory Skill\n\nRetrieve and browse a Steam user's inventory, and send/manage trade offers on steamcommunity.com.\n\nSetup\n\nFind your Steam ID (SteamID64):\n\nGo to your Steam profile page\nIf your URL is https://steamcommunity.com/profiles/76561198012345678, your Steam ID is 76561198012345678\nIf your URL uses a vanity name like https://steamcommunity.com/id/myname, visit steamid.io and paste your profile URL to get your SteamID64\n\nGet your Steam Web API key:\n\nGo to https://steamcommunity.com/dev/apikey\nRegister a domain name (any value works, e.g., localhost)\nCopy the API key shown on the page\n\nGet your Steam session cookies (required for trade offers and bypassing inventory rate limits):\n\nLog in to steamcommunity.com in your browser\nOpen Developer Tools (F12) > Application tab > Cookies > https://steamcommunity.com\nCopy the value of the steamLoginSecure cookie\nCopy the value of the sessionid cookie\n\nSet environment variables:\n\nexport STEAM_ID=\"your-steamid64\"\nexport STEAM_API_KEY=\"your-api-key\"\nexport STEAM_COOKIES=\"steamLoginSecure=your-cookie-value\"\nexport STEAM_SESSION_ID=\"your-sessionid-cookie-value\"\n\nUsage\n\nAll commands use curl to hit the Steam Community inventory endpoint. The context ID is 2 for all standard game inventories.\n\nCommon App IDs\nGame\tApp ID\nCS2 / CS:GO\t730\nTeam Fortress 2\t440\nDota 2\t570\nRust\t252490\nPUBG\t578080\nSteam Community (trading cards, etc.)\t753\nGet inventory for a game\n\nReplace $APP_ID with the game's App ID (see table above). Context ID is 2 for all standard game inventories.\n\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/$APP_ID/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '.'\n\nGet CS2 inventory\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '.'\n\nGet a summary of items (names and quantities)\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '[.descriptions[] | {market_hash_name, type}]'\n\nGet item details (asset IDs mapped to descriptions)\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '{assets: [.assets[] | {assetid, classid, instanceid, amount}], total: .total_inventory_count}'\n\nPaginated fetch (for inventories over 2000 items)\n\nThe API returns a last_assetid field when there are more items. Pass it as start_assetid to get the next page:\n\ncurl -s \"https://steamcommunity.com/inventory/$STEAM_ID/730/2?l=english&count=2000&start_assetid=$LAST_ASSET_ID\" \\\n  -H \"Cookie: $STEAM_COOKIES\" | jq '.'\n\n\nCheck for more pages by looking at the more_items field in the response (equals 1 if there are more).\n\nResponse Format\n\nThe inventory endpoint returns JSON with these key fields:\n\nField\tDescription\nassets\tArray of items with appid, contextid, assetid, classid, instanceid, amount\ndescriptions\tArray of item metadata: market_hash_name, name, type, icon_url, tradable, marketable, tags, etc.\ntotal_inventory_count\tTotal number of items in the inventory\nmore_items\t1 if more pages available (absent otherwise)\nlast_assetid\tLast asset ID returned; use as start_assetid for next page\nsuccess\t1 if the request succeeded\n\nAssets are linked to descriptions via classid + instanceid.\n\nNotes\nRate limits: The community endpoint is heavily rate-limited by IP. Using your own cookies bypasses this for your own inventory. Without cookies, expect IP bans after a few requests (cooldown ~6 hours).\nSpacing: If fetching multiple inventories or pages, wait at least 4 seconds between requests.\ncount parameter: Max value is 5000, but 2000 is recommended to avoid issues.\nContext ID: Use 2 for all standard game inventories. Steam Community items (appid 753) also use context ID 6 for some item types.\nPrivate profiles: Inventory must be set to public, or you must be authenticated as the owner.\nTrade Offers\n\nTrade offers require an authenticated session (cookies) and a Steam Web API key. The sessionid cookie is sent as both a cookie and a POST body parameter.\n\nPartner identification\n\nTrade partners can be identified two ways:\n\nBy SteamID64 — e.g., 76561198012345678. Convert to a 32-bit account ID for the partner field: subtract 76561197960265728 from the SteamID64.\nBy trade URL — e.g., https://steamcommunity.com/tradeoffer/new/?partner=52079950&token=YDAlR4bC. The partner value is the 32-bit account ID. The token is needed when the partner is not on your friends list.\nSend a trade offer\n\nThis sends items from your inventory to another user (and/or requests items from theirs). Each item requires its appid, contextid, and assetid (obtained from the inventory endpoint above).\n\nThe json_tradeoffer parameter is a JSON string describing what each side gives. The me object holds your items to give; the them object holds items you want to receive.\n\n# Set trade parameters\nPARTNER_ACCOUNT_ID=\"52079950\"  # 32-bit account ID (from trade URL or SteamID64 - 76561197960265728)\nPARTNER_STEAM_ID=\"76561198012345678\"  # Full SteamID64 (= 76561197960265728 + PARTNER_ACCOUNT_ID)\nTRADE_TOKEN=\"YDAlR4bC\"         # From partner's trade URL (omit if partner is on your friends list)\nTRADE_MESSAGE=\"Here's the trade we discussed\"\n\n# Build the json_tradeoffer payload\n# me.assets = items YOU are giving, them.assets = items you WANT from them\nJSON_TRADEOFFER='{\n  \"newversion\": true,\n  \"version\": 4,\n  \"me\": {\n    \"assets\": [\n      {\"appid\": 730, \"contextid\": \"2\", \"amount\": 1, \"assetid\": \"YOUR_ASSET_ID\"}\n    ],\n    \"currency\": [],\n    \"ready\": false\n  },\n  \"them\": {\n    \"assets\": [\n      {\"appid\": 730, \"contextid\": \"2\", \"amount\": 1, \"assetid\": \"THEIR_ASSET_ID\"}\n    ],\n    \"currency\": [],\n    \"ready\": false\n  }\n}'\n\n# Send with trade token (non-friend)\ncurl -s \"https://steamcommunity.com/tradeoffer/new/send\" \\\n  -X POST \\\n  -H \"Cookie: sessionid=$STEAM_SESSION_ID; $STEAM_COOKIES\" \\\n  -H \"Referer: https://steamcommunity.com/tradeoffer/new/?partner=$PARTNER_ACCOUNT_ID&token=$TRADE_TOKEN\" \\\n  -H \"Origin: https://steamcommunity.com\" \\\n  -d \"sessionid=$STEAM_SESSION_ID\" \\\n  -d \"serverid=1\" \\\n  -d \"partner=$PARTNER_STEAM_ID\" \\\n  --data-urlencode \"tradeoffermessage=$TRADE_MESSAGE\" \\\n  --data-urlencode \"json_tradeoffer=$JSON_TRADEOFFER\" \\\n  -d \"captcha=\" \\\n  --data-urlencode \"trade_offer_create_params={\\\"trade_offer_access_token\\\":\\\"$TRADE_TOKEN\\\"}\" \\\n  | jq '.'\n\n\nTo send to a friend (no token needed), omit the token from the Referer and set trade_offer_create_params to {}:\n\ncurl -s \"https://steamcommunity.com/tradeoffer/new/send\" \\\n  -X POST \\\n  -H \"Cookie: sessionid=$STEAM_SESSION_ID; $STEAM_COOKIES\" \\\n  -H \"Referer: https://steamcommunity.com/tradeoffer/new/?partner=$PARTNER_ACCOUNT_ID\" \\\n  -H \"Origin: https://steamcommunity.com\" \\\n  -d \"sessionid=$STEAM_SESSION_ID\" \\\n  -d \"serverid=1\" \\\n  -d \"partner=$PARTNER_STEAM_ID\" \\\n  --data-urlencode \"tradeoffermessage=$TRADE_MESSAGE\" \\\n  --data-urlencode \"json_tradeoffer=$JSON_TRADEOFFER\" \\\n  -d \"captcha=\" \\\n  -d \"trade_offer_create_params={}\" \\\n  | jq '.'\n\n\nThe response returns a tradeofferid on success:\n\n{\"tradeofferid\": \"1234567890\", \"needs_mobile_confirmation\": true, \"needs_email_confirmation\": false}\n\nSending a gift (no items requested in return)\n\nSet them.assets to an empty array []:\n\nJSON_TRADEOFFER='{\n  \"newversion\": true,\n  \"version\": 4,\n  \"me\": {\n    \"assets\": [\n      {\"appid\": 730, \"contextid\": \"2\", \"amount\": 1, \"assetid\": \"YOUR_ASSET_ID\"}\n    ],\n    \"currency\": [],\n    \"ready\": false\n  },\n  \"them\": {\n    \"assets\": [],\n    \"currency\": [],\n    \"ready\": false\n  }\n}'\n\nGet trade offers (sent and received)\n\nUses the official Steam Web API with your API key.\n\n# Get all active trade offers (sent and received)\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=$STEAM_API_KEY&get_sent_offers=1&get_received_offers=1&active_only=1&get_descriptions=1&language=english\" \\\n  | jq '.'\n\n# Get only received active offers\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=$STEAM_API_KEY&get_sent_offers=0&get_received_offers=1&active_only=1&get_descriptions=1&language=english\" \\\n  | jq '.response.trade_offers_received'\n\n# Get only sent active offers\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffers/v1/?key=$STEAM_API_KEY&get_sent_offers=1&get_received_offers=0&active_only=1&get_descriptions=1&language=english\" \\\n  | jq '.response.trade_offers_sent'\n\nGet a specific trade offer\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffer/v1/?key=$STEAM_API_KEY&tradeofferid=$TRADE_OFFER_ID&language=english&get_descriptions=1\" \\\n  | jq '.response.offer'\n\nGet trade offers summary (counts)\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeOffersSummary/v1/?key=$STEAM_API_KEY&time_last_visit=0\" \\\n  | jq '.response'\n\nAccept a trade offer\n\nAccepting uses the Steam Community web endpoint (not the Web API). You need the tradeofferid and the partner's SteamID64.\n\nTRADE_OFFER_ID=\"1234567890\"\nPARTNER_STEAM_ID=\"76561198012345678\"\n\ncurl -s \"https://steamcommunity.com/tradeoffer/$TRADE_OFFER_ID/accept\" \\\n  -X POST \\\n  -H \"Cookie: sessionid=$STEAM_SESSION_ID; $STEAM_COOKIES\" \\\n  -H \"Referer: https://steamcommunity.com/tradeoffer/$TRADE_OFFER_ID/\" \\\n  -d \"sessionid=$STEAM_SESSION_ID\" \\\n  -d \"tradeofferid=$TRADE_OFFER_ID\" \\\n  -d \"serverid=1\" \\\n  -d \"partner=$PARTNER_STEAM_ID\" \\\n  -d \"captcha=\" \\\n  | jq '.'\n\nCancel a sent trade offer\ncurl -s \"https://api.steampowered.com/IEconService/CancelTradeOffer/v1/\" \\\n  -X POST \\\n  -d \"key=$STEAM_API_KEY\" \\\n  -d \"tradeofferid=$TRADE_OFFER_ID\"\n\nDecline a received trade offer\ncurl -s \"https://api.steampowered.com/IEconService/DeclineTradeOffer/v1/\" \\\n  -X POST \\\n  -d \"key=$STEAM_API_KEY\" \\\n  -d \"tradeofferid=$TRADE_OFFER_ID\"\n\nGet trade history\ncurl -s \"https://api.steampowered.com/IEconService/GetTradeHistory/v1/?key=$STEAM_API_KEY&max_trades=10&get_descriptions=1&language=english&include_failed=0\" \\\n  | jq '.response.trades'\n\nTrade offer states reference\nValue\tState\tDescription\n1\tInvalid\tInvalid or unknown state\n2\tActive\tSent, neither party has acted yet\n3\tAccepted\tItems were exchanged\n4\tCountered\tRecipient made a counter offer\n5\tExpired\tNot accepted before the deadline\n6\tCanceled\tSender canceled the offer\n7\tDeclined\tRecipient declined the offer\n8\tInvalidItems\tItems in the offer are no longer available\n9\tCreatedNeedsConfirmation\tAwaiting mobile/email confirmation before sending\n10\tCanceledBySecondFactor\tCanceled via email/mobile confirmation\n11\tInEscrow\tOn hold; items removed from both inventories, will deliver automatically\nTrade offer notes\nMobile confirmation: Most trade offers require Steam Mobile Authenticator confirmation. The send response will indicate needs_mobile_confirmation: true if so.\nTrade holds: Accounts without Steam Guard Mobile Authenticator enabled for 7+ days will have a 15-day trade hold on all trades.\nPartner's inventory: To see what the partner has available to trade, fetch their inventory the same way as yours (using their SteamID64 instead of $STEAM_ID). Their inventory must be public or you must be friends.\nThe partner field: The send endpoint expects the full SteamID64 in the partner POST parameter. The trade URL's partner query parameter is the 32-bit account ID.\nCookie expiry: The sessionid and steamLoginSecure cookies expire when your Steam session ends. Refresh them from your browser when they stop working."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/bluesyparty-src/steamcommunity",
    "publisherUrl": "https://clawhub.ai/bluesyparty-src/steamcommunity",
    "owner": "bluesyparty-src",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/steamcommunity",
    "downloadUrl": "https://openagent3.xyz/downloads/steamcommunity",
    "agentUrl": "https://openagent3.xyz/skills/steamcommunity/agent",
    "manifestUrl": "https://openagent3.xyz/skills/steamcommunity/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/steamcommunity/agent.md"
  }
}