Install
openclaw skills install jd-price-protectAuto-apply JD.com (京东) price protection on all eligible orders. Connects to Chrome via OpenClaw Browser Relay CDP, navigates to JD price protection page, clicks all "申请价保" buttons, and reports refund results. Supports pagination and scheduled cron usage.
openclaw skills install jd-price-protectAuto-apply price protection (价格保护) on all eligible JD.com orders via Chrome Browser Relay.
Run the script:
node <skill-dir>/scripts/price-protect.js
The script will:
https://pcsitepp-fm.jd.com/ if needed{
"total": 11,
"clicked": 11,
"success": [{"name": "ANKER 140W充电线...", "amount": "6.00"}],
"failed": [{"name": "KAMAN收纳盒...", "reason": "无差价"}]
}
success array is non-empty (refunds obtained)Set up a cron job to run every ~8 hours. Example agent prompt:
Run
node <skill-dir>/scripts/price-protect.js. If Chrome relay is disconnected (error), skip silently. If refunds found, notify user. Otherwise update checkedAt silently.
GATEWAY_TOKEN env var or ensure ~/.openclaw/openclaw.json has gateway.auth.token.Derives the relay auth token via HMAC-SHA256(gatewayToken, "openclaw-extension-relay-v1:<port>"), connects Playwright to Chrome's CDP websocket, then uses getByText('申请价保', {exact: true}).click() to trigger each button.