资源
5安装
npx skillscat add imoonkey/openweb/src-sites-target 通过 SkillsCat registry 安装。
技能简介
该技能通过RedskyAPI实现Target商品搜索、详情、库存查询及加入/删除购物车操作。
SKILL.md
Target
Overview
Target.com — major US e-commerce retailer. Product search, detail, store availability, and cart management via internal Redsky aggregation and cart APIs.
Workflows
Search and inspect products
searchProducts(keyword)→ browse results →tcingetProductDetail(tcin)→ full product info with variants
Check store availability
searchProducts(keyword)→ pick product →tcingetStoreAvailability(tcin, nearby)→ stock levels, pickup times by store
Add to cart
searchProducts(keyword)→ pick product →tcinaddToCart(tcin)→ cart confirmation with pricing →cart_item_id
Remove from cart
addToCart(tcin)→ notecart_item_idfrom responseremoveFromCart(cart_item_id)→ updated cart summary
Operations
| Operation | Intent | Key Input | Key Output | Notes |
|---|---|---|---|---|
| searchProducts | search products by keyword | keyword | tcin, title, price, rating, images | entry point; returns HTTP 206 |
| getProductDetail | full product detail by TCIN | tcin ← searchProducts | title, description, price, ratings, variants, brand | |
| getStoreAvailability | per-store stock and pickup times | tcin ← searchProducts, nearby (zip code) | stock qty, pickup SLA, store name/address | |
| addToCart | add product to cart | tcin ← searchProducts | cart_id, cart_item_id, quantity, unit_price, fulfillment | CAUTION: adds to cart only, never checkout |
| removeFromCart | remove item from cart | cart_item_id ← addToCart | cart_id, total_cart_item_quantity, removed_cart_item_id | CAUTION: reverses addToCart |
Quick Start
# Search for products
openweb target exec searchProducts '{"keyword": "headphones"}'
# Get full detail for a product
openweb target exec getProductDetail '{"tcin": "92750139"}'
# Check store availability near a zip code
openweb target exec getStoreAvailability '{"tcin": "91938794", "nearby": "95125"}'
# Add to cart then remove
openweb target exec addToCart '{"cart_item": {"tcin": "91252434"}}'
# → note cart_item_id from response
openweb target exec removeFromCart '{"cart_item_id": "<cart_item_id>"}'