xianyu_accounts
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese闲鱼账号管理
Xianyu Account Management
当用户想要查看或管理闲鱼账号时,使用此技能。
Use this skill when users want to view or manage their Xianyu accounts.
使用方法
Usage
使用 工具执行以下命令:
bashUse the tool to execute the following commands:
bash查看所有账号
View All Accounts
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action list返回:所有已配置账号的名称、状态、优先级等信息。
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action listReturns: Information such as the name, status, and priority of all configured accounts.
检查账号健康度
Check Account Health
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action health --id <account_id>返回:账号健康分数、发布数、错误数等指标。
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action health --id <account_id>Returns: Metrics such as account health score, number of posts, number of errors, etc.
验证 Cookie 有效性
Validate Cookie Validity
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action validate --id <account_id>返回:Cookie 是否仍然有效。
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action validate --id <account_id>Returns: Whether the Cookie is still valid.
刷新 Cookie
Refresh Cookie
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action refresh-cookie --id <account_id> --cookie "新的cookie值"bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action refresh-cookie --id <account_id> --cookie "new cookie value"示例
Examples
用户说:"我的账号还正常吗" →
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action list然后对每个账号执行健康检查。
用户说:"Cookie 过期了,我更新一下" →
要求用户提供新的 Cookie 值,然后:
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action refresh-cookie --id account_1 --cookie "用户提供的cookie"User says: "Is my account still normal?" →
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action listThen perform a health check for each account.
User says: "The Cookie has expired, I need to update it" →
Ask the user to provide the new Cookie value, then:
bash
cd /home/node/.openclaw/workspace && python -m src.cli accounts --action refresh-cookie --id account_1 --cookie "cookie provided by user"注意事项
Notes
- Cookie 是敏感信息,不要在回复中完整展示
- 如果 Cookie 过期,提醒用户:打开浏览器 -> 登录闲鱼 -> F12 -> Network -> 复制 Cookie
- 健康度低于 50% 的账号建议暂停使用
- Cookie is sensitive information, do not display it completely in responses
- If the Cookie expires, remind the user: Open browser -> Log in to Xianyu -> F12 -> Network -> Copy Cookie
- Accounts with a health score below 50% are recommended to be suspended