JD Price Protection 京东自动价保
/install jd-price-protect
JD Price Protection
Auto-apply price protection (价格保护) on all eligible JD.com orders via Chrome Browser Relay.
Prerequisites
- Chrome with OpenClaw Browser Relay extension installed and connected (badge ON)
- User must be logged into JD.com in Chrome
- OpenClaw gateway running
Usage
Run the script:
node \x3Cskill-dir>/scripts/price-protect.js
The script will:
- Connect to Chrome via OpenClaw's CDP relay (auto-derives relay token from gateway config)
- Navigate to
https://pcsitepp-fm.jd.com/if needed - Click every "申请价保" button on the page
- Reload and collect results (successes with refund amounts, failures with reasons)
- Output JSON results
Interpreting Results
{
"total": 11,
"clicked": 11,
"success": [{"name": "ANKER 140W充电线...", "amount": "6.00"}],
"failed": [{"name": "KAMAN收纳盒...", "reason": "无差价"}]
}
- Only notify user if
successarray is non-empty (refunds obtained) - If all items show "无差价", update state silently
Scheduled Usage
Set up a cron job to run every ~8 hours. Example agent prompt:
Run
node \x3Cskill-dir>/scripts/price-protect.js. If Chrome relay is disconnected (error), skip silently. If refunds found, notify user. Otherwise update checkedAt silently.
Troubleshooting
- "No browser page available": Chrome relay disconnected. User must click Browser Relay toolbar icon.
- "No gateway token found": Set
GATEWAY_TOKENenv var or ensure~/.openclaw/openclaw.jsonhasgateway.auth.token. - Timeout on clicks: A popup may be blocking. Script presses Escape after each click to dismiss.
How It Works
Derives the relay auth token via HMAC-SHA256(gatewayToken, "openclaw-extension-relay-v1:\x3Cport>"), connects Playwright to Chrome's CDP websocket, then uses getByText('申请价保', {exact: true}).click() to trigger each button.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jd-price-protect - 安装完成后,直接呼叫该 Skill 的名称或使用
/jd-price-protect触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
JD Price Protection 京东自动价保 是什么?
Auto-apply JD.com (京东) price protection on all eligible orders. Connects to Chrome via OpenClaw Browser Relay CDP, navigates to JD price protection page, cli... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 656 次。
如何安装 JD Price Protection 京东自动价保?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jd-price-protect」即可一键安装,无需额外配置。
JD Price Protection 京东自动价保 是免费的吗?
是的,JD Price Protection 京东自动价保 完全免费(开源免费),可自由下载、安装和使用。
JD Price Protection 京东自动价保 支持哪些平台?
JD Price Protection 京东自动价保 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 JD Price Protection 京东自动价保?
由 Danielwangyy(@danielwangyy)开发并维护,当前版本 v1.0.0。